diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-01-13 20:31:17 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-01-13 20:31:17 +0200 |
commit | af8f0545604a497e1852c977dfdcce1676d9f144 (patch) | |
tree | f675e95e331c24b71cebc6c7050b18bc9767de95 /src | |
parent | b7f9f9bdb21ffeb50f5814fdcce2f315215fdb1e (diff) | |
download | apk-tools-af8f0545604a497e1852c977dfdcce1676d9f144.tar.gz apk-tools-af8f0545604a497e1852c977dfdcce1676d9f144.tar.bz2 apk-tools-af8f0545604a497e1852c977dfdcce1676d9f144.tar.xz apk-tools-af8f0545604a497e1852c977dfdcce1676d9f144.zip |
state: fix again changeset ordering
Diffstat (limited to 'src')
-rw-r--r-- | src/state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.c b/src/state.c index 3dc2b9b..3b93fc1 100644 --- a/src/state.c +++ b/src/state.c @@ -53,7 +53,7 @@ static int apk_state_add_change(struct apk_state *state, return -1; list_init(&change->change_list); - list_add(&change->change_list, &state->change_list_head); + list_add_tail(&change->change_list, &state->change_list_head); change->oldpkg = oldpkg; change->newpkg = newpkg; @@ -275,7 +275,7 @@ int apk_state_satisfy_deps(struct apk_state *state, if (deps == NULL) return 0; - for (i = deps->num - 1; i >= 0; i--) { + for (i = 0; i < deps->num; i++) { name = deps->item[i].name; if (name->pkgs == NULL) { apk_error("No providers for '%s'", name->name); |