state: fix late locking of packages

commit 4e72075fba 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.
cute-signatures
Timo Teräs 2011-03-27 02:50:48 +02:00
parent 116d9a0ea7
commit 79b7123b09
1 changed files with 1 additions and 1 deletions

View File

@ -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)