state: lock package late for names specified on command line
This will fix certain scenarios where multiple packages are installed with full package files specified on command line and they depend on each other.cute-signatures
parent
93eb38a31a
commit
4e72075fba
|
@ -420,11 +420,18 @@ static int apk_state_fix_package(struct apk_state *state,
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
for (i = 0; i < pkg->depends->num; i++) {
|
for (i = 0; i < pkg->depends->num; i++) {
|
||||||
|
if (pkg->name->flags & APK_NAME_TOPLEVEL_OVERRIDE) {
|
||||||
|
r = apk_state_prune_dependency(state,
|
||||||
|
&pkg->depends->item[i]);
|
||||||
|
if (r < 0)
|
||||||
|
ret = -1;
|
||||||
|
} else {
|
||||||
r = apk_state_lock_dependency(state,
|
r = apk_state_lock_dependency(state,
|
||||||
&pkg->depends->item[i]);
|
&pkg->depends->item[i]);
|
||||||
if (r != 0)
|
if (r != 0)
|
||||||
ret = -1;
|
ret = -1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue