[yum-commits] Branch 'yum-3_2_X' - yum/rpmsack.py

skvidal at osuosl.org skvidal at osuosl.org
Tue Jan 12 14:58:28 UTC 2010


 yum/rpmsack.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit dbb4abff578169ccd3d1f423651089fc2832a8b8
Author: Michael Babej <mbabej at redhat.com>
Date:   Tue Jan 12 09:58:08 2010 -0500

    Fix namerror/typo missing value in rpm problem comparisons

diff --git a/yum/rpmsack.py b/yum/rpmsack.py
index 4f79fad..2ffc820 100644
--- a/yum/rpmsack.py
+++ b/yum/rpmsack.py
@@ -93,7 +93,7 @@ class RPMDBProblem:
     def __cmp__(self, other):
         if other is None:
             return 1
-        return cmp(self.pkg, other.pkg) or cmp(self.problem, problem)
+        return cmp(self.pkg, other.pkg) or cmp(self.problem, other.problem)
 
 
 class RPMDBProblemDependency(RPMDBProblem):


More information about the Yum-commits mailing list