]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Fix type check broken by commit 26fcfa714a29d1feb393e9a61f9d1a04556866a6
authorMichael Schroeder <mls@suse.de>
Fri, 11 Nov 2022 13:31:30 +0000 (14:31 +0100)
committerMichael Schroeder <mls@suse.de>
Fri, 11 Nov 2022 13:31:30 +0000 (14:31 +0100)
Caught by our libzypp test cases. I should run them more often.

src/rules.c

index f57ccbfaf256a858086da4612bfd29e3a1254ffa..3fed0ec5c0ce5578f344c1ff55453de69ac7dc1d 100644 (file)
@@ -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)