]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Optimize last commit a bit
authorMichael Schroeder <mls@suse.de>
Mon, 25 Mar 2019 15:58:50 +0000 (16:58 +0100)
committerMichael Schroeder <mls@suse.de>
Mon, 25 Mar 2019 15:58:50 +0000 (16:58 +0100)
There's no need to look at already conflicted packages, they cannot
be in the package list.

src/solver.c

index a53e61ce9f19ceeb43e06121ec5c4f6a686c567e..b335e6afb9b38dd44d40f5c8bd7d2850de29e08f 100644 (file)
@@ -1849,7 +1849,8 @@ do_cleandeps_update_filter(Solver *solv, Queue *dq)
       if (specialupdaters && (d = specialupdaters[p - installed->start]) != 0)
        {
          while ((p2 = pool->whatprovidesdata[d++]) != 0)
-           queue_push(&q, p2);
+           if (solv->decisionmap[p2] >= 0)
+             queue_push(&q, p2);
        }
       else
        {
@@ -1857,7 +1858,8 @@ do_cleandeps_update_filter(Solver *solv, Queue *dq)
          if (r->p)
            {
              FOR_RULELITERALS(p2, pp, r)
-               queue_push(&q, p2);
+               if (solv->decisionmap[p2] >= 0)
+                 queue_push(&q, p2);
            }
        }
       if (q.count && solv->update_targets && solv->update_targets->elements[p - installed->start])