From 79b7123b09dc7f467e0a7f89d521fb75b616f574 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Sun, 27 Mar 2011 02:50:48 +0200 Subject: state: fix late locking of packages commit 4e72075fbab introduced late locking for top level packages, but used the wrong package's top level flag for the check. this fixes a problem that dependencies might not get pulled in. --- src/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/state.c b/src/state.c index cb6e5cc..6fa81f2 100644 --- a/src/state.c +++ b/src/state.c @@ -426,7 +426,7 @@ static int apk_state_fix_package(struct apk_state *state, return 0; for (i = 0; i < pkg->depends->num; i++) { - if (pkg->name->flags & APK_NAME_TOPLEVEL_OVERRIDE) { + if (pkg->depends->item[i].name->flags & APK_NAME_TOPLEVEL_OVERRIDE) { r = apk_state_prune_dependency(state, &pkg->depends->item[i]); if (r < 0) -- cgit v1.2.3-70-g09d2