Commit dded2619 authored by Timo Teräs's avatar Timo Teräs
Browse files

state: late locking for install_if package selection

improves behaviour under certain corner case conditions.
parent e43ec608
......@@ -454,6 +454,12 @@ int apk_state_autolock_name(struct apk_state *state, struct apk_name *name,
if (use == NULL)
return -2;
/* Install_if check did not result in package selection change:
* do not lock the package yet as the preferency might change
* later. */
if (install_if && use->ipkg != NULL)
return 0;
return apk_state_lock_name(state, name, use);
/* If any of the choices is installed, we are good. Otherwise,
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