Commit 79b7123b authored by Timo Teräs's avatar Timo Teräs

state: fix late locking of packages

commit 4e72075f 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.
parent 116d9a0e
......@@ -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,
if (r < 0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment