[Yum-devel] [PATCH] Pick already installed packages as "best" with provide install

James Antill james at and.org
Tue Jun 1 19:13:56 UTC 2010


---
 yum/depsolve.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/yum/depsolve.py b/yum/depsolve.py
index 60b4e2f..8c260a7 100644
--- a/yum/depsolve.py
+++ b/yum/depsolve.py
@@ -1168,6 +1168,10 @@ class Depsolve(object):
                     # something else in the transaction. :(
                     # there are many ways I hate this - this is but one
                     ipkgresults[pkg] = 5
+                elif newest.verEQ(pkg):
+                    #  We get here from bestPackagesFromList(), give a giant
+                    # bump to stuff that is already installed.
+                    ipkgresults[pkg] = 1000
             else:
                 # just b/c they're not installed pkgs doesn't mean they should
                 # be ignored entirely. Just not preferred
-- 
1.7.0.1



More information about the Yum-devel mailing list