Commit f936d78d authored by Timo Teräs's avatar Timo Teräs

state: require an available package for re-installs

otherwise we would not be able to pick a package that exists
as a candidate for re-installation. fixes #138.
parent f9b20358
......@@ -310,7 +310,8 @@ int apk_state_lock_dependency(struct apk_state *state,
continue;
}
if (apk_flags & APK_PREFER_AVAILABLE) {
if ((apk_flags & APK_PREFER_AVAILABLE) ||
(name->flags & APK_NAME_REINSTALL)) {
if (latest->repos != 0 && pkg->repos == 0)
continue;
......
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