summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2014-03-24 18:01:19 +0100
committerMichael Schroeder <mls@suse.de>2014-03-24 18:01:19 +0100
commit006013eba67f4fad1477e042c2d05a49711c0218 (patch)
tree9726453ce609e9646c2ff853bcff383bcb3d31d5
parent457c61a3c4b9777af2325c204dcc92884be4c1dc (diff)
downloadlibsolv-006013eba67f4fad1477e042c2d05a49711c0218.tar.gz
libsolv-006013eba67f4fad1477e042c2d05a49711c0218.tar.bz2
libsolv-006013eba67f4fad1477e042c2d05a49711c0218.zip
ignore negative assertions in choice rule generation
-rw-r--r--src/rules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rules.c b/src/rules.c
index 9b36aa8..bce12f4 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);