summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-03-27 02:50:48 +0200
committerTimo Teräs <timo.teras@iki.fi>2011-03-27 02:50:48 +0200
commit79b7123b09dc7f467e0a7f89d521fb75b616f574 (patch)
tree78d5800431880997969b40e537da387d341e55a3
parent116d9a0ea7a5e903a344f7e6044dd019349bc01c (diff)
downloadapk-tools-79b7123b09dc7f467e0a7f89d521fb75b616f574.tar.gz
apk-tools-79b7123b09dc7f467e0a7f89d521fb75b616f574.tar.bz2
apk-tools-79b7123b09dc7f467e0a7f89d521fb75b616f574.tar.xz
apk-tools-79b7123b09dc7f467e0a7f89d521fb75b616f574.zip
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.
-rw-r--r--src/state.c2
1 files changed, 1 insertions, 1 deletions
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)