[yum-git] yum/depsolve.py

James Antill james at linux.duke.edu
Fri Feb 22 20:15:18 UTC 2008


 yum/depsolve.py |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 1fa3e982b860887973a4174130c1b05e19b14760
Author: James Antill <james at and.org>
Date:   Fri Feb 22 15:15:14 2008 -0500

    Do the right thing in compare_providers() when nothing else is better

diff --git a/yum/depsolve.py b/yum/depsolve.py
index fb2a919..6efe242 100644
--- a/yum/depsolve.py
+++ b/yum/depsolve.py
@@ -953,6 +953,9 @@ class Depsolve(object):
                 if arch == po.arch:
                     return po
 
+        # Nothing else was better, so this is it
+        return bestpkg
+
 
 class DepCheck(object):
     """object that YumDepsolver uses to see what things are needed to close



More information about the Yum-cvs-commits mailing list