summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-01-13 11:16:27 +0200
committerTimo Teras <timo.teras@iki.fi>2009-01-13 11:16:27 +0200
commit0a7910c144568d8c22a99e359d9c3caf087bc368 (patch)
tree589c12c1357441ded0ae8f0a3c1b9cfd8a20d0f2
parentca364e34e2f8bf60fa413410ac7b82c64e1758b7 (diff)
downloadapk-tools-0a7910c144568d8c22a99e359d9c3caf087bc368.tar.bz2
apk-tools-0a7910c144568d8c22a99e359d9c3caf087bc368.tar.xz
state: install packages in dependency order (not reverse)
-rw-r--r--src/state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.c b/src/state.c
index 484d5ee..a07d10b 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_tail(&change->change_list, &state->change_list_head);
+ list_add(&change->change_list, &state->change_list_head);
change->oldpkg = oldpkg;
change->newpkg = newpkg;