From f4ac687a8a448d7dc89d1c9dc42a5b10e3f86957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Tue, 27 Sep 2011 11:38:16 +0300 Subject: [PATCH] pkg: fix dependency checking against non-installed packages the solver requires this. --- src/package.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/package.c b/src/package.c index 9b25834..0f882e2 100644 --- a/src/package.c +++ b/src/package.c @@ -279,6 +279,11 @@ static int parse_depend(void *ctx, apk_blob_t blob) int apk_dep_is_satisfied(struct apk_dependency *dep, struct apk_package *pkg) { + if (pkg == NULL) { + if (dep->result_mask == APK_DEPMASK_CONFLICT) + return 1; + return 0; + } if (dep->name != pkg->name) return 0; if (dep->result_mask == APK_DEPMASK_CHECKSUM) {