]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
resolve_installed: remove dead code
authorMichael Schroeder <mls@suse.de>
Tue, 13 Feb 2024 11:43:50 +0000 (12:43 +0100)
committerMichael Schroeder <mls@suse.de>
Tue, 13 Feb 2024 11:43:50 +0000 (12:43 +0100)
Since we simplified our dup handling the update rules always
start with the installed package.

src/solver.c

index 363d887346a7329a8e1b59ff222f5836d5e5c271..0c3333d871e864fc300a3ca0cf38996e76cea028 100644 (file)
@@ -1835,11 +1835,10 @@ resolve_installed(Solver *solv, int level, int disablerules, Queue *dq)
 
          /* check if we should update this package to the latest version
           * noupdate is set for erase jobs, in that case we want to deinstall
-          * the installed package and not replace it with a newer version
-          * rr->p != i is for dup jobs where the installed package cannot be kept */
+          * the installed package and not replace it with a newer version */
          if (dq->count)
            queue_empty(dq);
-         if (!MAPTST(&solv->noupdate, i - installed->start) && (solv->decisionmap[i] < 0 || solv->updatemap_all || (solv->updatemap.size && MAPTST(&solv->updatemap, i - installed->start)) || (rr->p && rr->p != i)))
+         if (!MAPTST(&solv->noupdate, i - installed->start) && (solv->decisionmap[i] < 0 || solv->updatemap_all || (solv->updatemap.size && MAPTST(&solv->updatemap, i - installed->start))))
            {
              if (specialupdaters && (d = specialupdaters[i - installed->start]) != 0)
                {