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

solver: preference scoring

Should now choose packages better if the best available version
is uninstallable for some reason.
parent 3f098e7d
This diff is collapsed.
......@@ -101,7 +101,7 @@ static void print_dep_errors(char *label, struct apk_dependency_array *deps)
struct apk_dependency *dep = &deps->item[i];
struct apk_package *pkg = dep->name->state_ptr;
if (pkg != NULL && apk_dep_is_satisfied(dep, pkg))
if (apk_dep_is_satisfied(dep, pkg))
continue;
if (print_label) {
......
2 unsatisfiable dependencies (solution with 4 names)
world: d>1.5
c-1: d>1.0
1 unsatisfiable dependencies (solution with 4 names)
b-1: d<2.0
1 unsatisfiable dependencies (solution with 4 names)
c-1: d>1.0
world: d<1.5
1 unsatisfiable dependencies (solution with 4 names)
world: !b
1 unsatisfiable dependencies (solution with 3 names)
a-3: b
2 unsatisfiable dependencies (solution with 4 names)
a-3: d>1.5
c-1: d>1.0
1 unsatisfiable dependencies (solution with 4 names)
b-1: d<2.0
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