state: fix again changeset ordering
parent
b7f9f9bdb2
commit
af8f054560
|
@ -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,
|
||||||
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);
|
||||||
|
|
Loading…
Reference in New Issue