summaryrefslogtreecommitdiff
path: root/src/solver.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-03-31 23:27:15 +0300
committerTimo Teräs <timo.teras@iki.fi>2012-03-31 23:27:15 +0300
commita57db1bba098808ed3545579833ce4372ee4ba20 (patch)
tree76bc6f61223ff41dae1ab0d26c33c9cb19bccbc4 /src/solver.c
parentebaf8305b5c9cc5bdc5d640f4cb25e058f7a2c26 (diff)
downloadapk-tools-a57db1bba098808ed3545579833ce4372ee4ba20.tar.gz
apk-tools-a57db1bba098808ed3545579833ce4372ee4ba20.tar.bz2
apk-tools-a57db1bba098808ed3545579833ce4372ee4ba20.tar.xz
apk-tools-a57db1bba098808ed3545579833ce4372ee4ba20.zip
solver: fix installation of non-repository packages
Diffstat (limited to 'src/solver.c')
-rw-r--r--src/solver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/solver.c b/src/solver.c
index 820f840..c26fd7b 100644
--- a/src/solver.c
+++ b/src/solver.c
@@ -1116,7 +1116,8 @@ static int reconsider_name(struct apk_solver_state *ss, struct apk_name *name)
if (ps0 == NULL || ps0->locked || ps0->conflicts ||
ss->topology_position < pkg0->topology_hard ||
- (pkg0->ipkg == NULL && (!ps0->allowed || !pkg_available(ss->db, pkg0))))
+ (pkg0->ipkg == NULL && pkg->filename == NULL &&
+ (!ps0->allowed || !pkg_available(ss->db, pkg0))))
continue;
for (j = 0; j < pkg0->provides->num; j++) {