From: Michael Schroeder Date: Fri, 11 Nov 2022 13:31:30 +0000 (+0100) Subject: Fix type check broken by commit 26fcfa714a29d1feb393e9a61f9d1a04556866a6 X-Git-Tag: 0.7.23~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc10f1d7b76c6650188a85f17ede3355ee4b915e;p=thirdparty%2Flibsolv.git Fix type check broken by commit 26fcfa714a29d1feb393e9a61f9d1a04556866a6 Caught by our libzypp test cases. I should run them more often. --- diff --git a/src/rules.c b/src/rules.c index f57ccbfa..3fed0ec5 100644 --- a/src/rules.c +++ b/src/rules.c @@ -3008,7 +3008,7 @@ solver_ruleinfo(Solver *solv, Id rid, Id *fromp, Id *top, Id *depp) qp = rq.elements[i + 1]; qo = rq.elements[i + 2]; qd = rq.elements[i + 3]; - if (type == SOLVER_RULE_PKG || SOLVER_RULE_PKG_SAME_NAME || type > qt) + if (type == SOLVER_RULE_PKG || qt == SOLVER_RULE_PKG_SAME_NAME || type > qt) { type = qt; if (fromp)