From: Michael Schroeder Date: Mon, 24 Mar 2014 17:01:19 +0000 (+0100) Subject: ignore negative assertions in choice rule generation X-Git-Tag: 0.6.4~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=006013eba67f4fad1477e042c2d05a49711c0218;p=thirdparty%2Flibsolv.git ignore negative assertions in choice rule generation --- diff --git a/src/rules.c b/src/rules.c index 9b36aa86..bce12f44 100644 --- a/src/rules.c +++ b/src/rules.c @@ -2861,7 +2861,7 @@ solver_addchoicerules(Solver *solv) for (rid = 1; rid < solv->rpmrules_end ; rid++) { r = solv->rules + rid; - if (r->p >= 0 || ((r->d == 0 || r->d == -1) && r->w2 < 0)) + if (r->p >= 0 || ((r->d == 0 || r->d == -1) && r->w2 <= 0)) continue; /* only look at requires rules */ /* solver_printrule(solv, SOLV_DEBUG_RESULT, r); */ queue_empty(&q);