summaryrefslogtreecommitdiff
path: root/src/solver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/solver.c')
-rw-r--r--src/solver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/solver.c b/src/solver.c
index 1b55496..279d1f6 100644
--- a/src/solver.c
+++ b/src/solver.c
@@ -427,7 +427,7 @@ static int compare_providers(struct apk_solver_state *ss,
return r;
/* Prefer available */
- if (solver_flags & APK_SOLVERF_AVAILABLE) {
+ if (solver_flags & (APK_SOLVERF_AVAILABLE | APK_SOLVERF_REINSTALL)) {
r = !!(pkgA->repos & db->available_repos) -
!!(pkgB->repos & db->available_repos);
if (r)