Commit f4ac687a authored by Timo Teräs's avatar Timo Teräs

pkg: fix dependency checking against non-installed packages

the solver requires this.
parent 012bcbe4
...@@ -279,6 +279,11 @@ static int parse_depend(void *ctx, apk_blob_t blob) ...@@ -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) 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) if (dep->name != pkg->name)
return 0; return 0;
if (dep->result_mask == APK_DEPMASK_CHECKSUM) { if (dep->result_mask == APK_DEPMASK_CHECKSUM) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment