Commit af8f0545 authored by Timo Teräs's avatar Timo Teräs
Browse files

state: fix again changeset ordering

parent b7f9f9bd
...@@ -53,7 +53,7 @@ static int apk_state_add_change(struct apk_state *state, ...@@ -53,7 +53,7 @@ static int apk_state_add_change(struct apk_state *state,
return -1; return -1;
list_init(&change->change_list); 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->oldpkg = oldpkg;
change->newpkg = newpkg; change->newpkg = newpkg;
...@@ -275,7 +275,7 @@ int apk_state_satisfy_deps(struct apk_state *state, ...@@ -275,7 +275,7 @@ int apk_state_satisfy_deps(struct apk_state *state,
if (deps == NULL) if (deps == NULL)
return 0; return 0;
for (i = deps->num - 1; i >= 0; i--) { for (i = 0; i < deps->num; i++) {
name = deps->item[i].name; name = deps->item[i].name;
if (name->pkgs == NULL) { if (name->pkgs == NULL) {
apk_error("No providers for '%s'", name->name); apk_error("No providers for '%s'", name->name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment