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
parent
116d9a0ea7
commit
79b7123b09
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue