From: Michael Schroeder Date: Wed, 15 Sep 2021 14:58:41 +0000 (+0200) Subject: Choice rules: treat orphaned packages as newest X-Git-Tag: 0.7.20~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed88075af89418d624117fa2a2a7143cbccec6c9;p=thirdparty%2Flibsolv.git Choice rules: treat orphaned packages as newest Otherwise, they likely get deinstalled when the choice rule cannot be met. --- diff --git a/src/rules.c b/src/rules.c index b1b5f09c..212df322 100644 --- a/src/rules.c +++ b/src/rules.c @@ -3203,7 +3203,7 @@ solver_choicerulecheck2(Solver *solv, Id pi, Id pt, Queue *q) if (!ur->p) ur = solv->rules + solv->featurerules + (pi - pool->installed->start); if (!ur->p) - return 0; + return 1; /* orphaned, thus newest */ queue_push2(q, pi, 0); FOR_RULELITERALS(p, pp, ur) if (p > 0 && p != pi)