summaryrefslogtreecommitdiffstats
path: root/findpackageset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-07-08 20:51:03 +0000
committerJeremy Katz <katzj@redhat.com>2002-07-08 20:51:03 +0000
commitda58f88c56882a90e681f6e753c90ca545498e8f (patch)
tree4cbc5241ca24f6cd90c39b80d46f30a0a28db40f /findpackageset.py
parent67a1448d4ad5d441ed46b19c8b379462a4381c0c (diff)
downloadanaconda-da58f88c56882a90e681f6e753c90ca545498e8f.tar.gz
anaconda-da58f88c56882a90e681f6e753c90ca545498e8f.tar.xz
anaconda-da58f88c56882a90e681f6e753c90ca545498e8f.zip
versionCompare returns > 0 / < 0 not 1/-1. why this works fine with 7.3 rpm, I'm not sure I should ask :/
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)