From da58f88c56882a90e681f6e753c90ca545498e8f Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Mon, 8 Jul 2002 20:51:03 +0000 Subject: versionCompare returns > 0 / < 0 not 1/-1. why this works fine with 7.3 rpm, I'm not sure I should ask :/ --- findpackageset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'findpackageset.py') 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) -- cgit