summaryrefslogtreecommitdiff
path: root/src/solver.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-06-17 14:24:34 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-06-17 14:38:27 +0300
commit9d100378074d21f99dc26bae8417932dc110664e (patch)
treee66829190a5648b146698e372b2a9403d535f866 /src/solver.c
parentdbb642206d2ef73c5428a04cb10bb27e7cdd3b29 (diff)
downloadapk-tools-9d100378074d21f99dc26bae8417932dc110664e.tar.gz
apk-tools-9d100378074d21f99dc26bae8417932dc110664e.tar.bz2
apk-tools-9d100378074d21f99dc26bae8417932dc110664e.tar.xz
apk-tools-9d100378074d21f99dc26bae8417932dc110664e.zip
db: refactor repository file construction
Fixes also 'fetch' applet to prefer copying/linking to files from cache if possible.
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)