[yum-git] Branch 'yum-3_2_X' - yum/__init__.py

James Antill james at linux.duke.edu
Thu Jul 10 16:57:36 UTC 2008


 yum/__init__.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c2fff316f82ec96781c40f2a98a6575669b62bf1
Author: James Antill <james at and.org>
Date:   Thu Jul 10 12:56:24 2008 -0400

    Fix available comparison in "all" mode, use new .ver*() methods

diff --git a/yum/__init__.py b/yum/__init__.py
index f351906..521a8a0 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -1356,7 +1356,7 @@ class YumBase(depsolve.Depsolve):
                 if showdups:
                     continue
                 key = (po.name, po.arch)
-                if key not in ndinst or po > ndinst[key]:
+                if key not in ndinst or po.verGT(ndinst[key]):
                     ndinst[key] = po
             installed = dinst.values()
                         
@@ -1374,7 +1374,7 @@ class YumBase(depsolve.Depsolve):
                         available.append(pkg)
                 else:
                     key = (pkg.name, pkg.arch)
-                    if key not in ndinst or pkg > ndinst[key]:
+                    if key not in ndinst or pkg.verGT(ndinst[key]):
                         available.append(pkg)
 
         # produce the updates list of tuples



More information about the Yum-cvs-commits mailing list