summaryrefslogtreecommitdiff
path: root/src/package.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c5
1 files changed, 5 insertions, 0 deletions
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) {