]> 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>
Thu, 27 Jun 2019 14:26:38 +0000 (16:26 +0200)
There's no need to look at already conflicted packages, they cannot
be in the package list.

src/solver.c

index 76eb069f524f1ccd034363988696771d927851ea..5d2d96dc6ce623fb775ffcb7634423b16e78000e 100644 (file)
@@ -1815,7 +1815,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
        {
@@ -1823,7 +1824,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])