summaryrefslogtreecommitdiffstats
path: root/findpackageset.py
diff options
context:
space:
mode:
Diffstat (limited to 'findpackageset.py')
-rw-r--r--findpackageset.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/findpackageset.py b/findpackageset.py
index 817715dad..6de957424 100644
--- a/findpackageset.py
+++ b/findpackageset.py
@@ -39,10 +39,10 @@ def findpackageset(hdlist, dbPath='/'):
h = mi.next()
while h:
val = rpm.versionCompare(h, pkg)
- if (val == 1):
+ if (val > 0):
# dEBUG("found older version of %(name)s" % h)
pass
- elif (val == -1):
+ elif (val < 0):
# dEBUG("found newer version of %(name)s" % h)
# check if we already have this package in our dictionary
addNewPackageToUpgSet(pkgDict, pkg)