Commit ed060911 authored by Natanael Copa's avatar Natanael Copa Committed by Timo Teräs

solver: do not disqualify already disqualified packages

We should not disqualify non-selectable packages as it would mark it as
dirty, forcing it to reconsider the name again, which could end up in
an endless loop.

fixes #2135
parent 21d4e924
......@@ -313,7 +313,7 @@ static void exclude_non_providers(struct apk_solver_state *ss, struct apk_name *
dbg_printf("%s must provide %s\n", name->name, must_provide->name);
foreach_array_item(p, name->providers) {
if (p->pkg->name == must_provide)
if (p->pkg->name == must_provide || !p->pkg->ss.pkg_selectable)
goto next;
foreach_array_item(d, p->pkg->provides)
if (d->name == must_provide)
......
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