From 026a36197ff8eb4baa7943a5b83daa004f0a9e62 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Fri, 2 Aug 2002 02:24:19 +0000 Subject: oops, this isn't right but would only be an impact if there were multiple versions of packages in a header list --- findpackageset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'findpackageset.py') diff --git a/findpackageset.py b/findpackageset.py index 6de957424..08ead4ea7 100644 --- a/findpackageset.py +++ b/findpackageset.py @@ -14,7 +14,7 @@ def addNewPackageToUpgSet(pkgDict, pkg): else: # first check version val = rpm.versionCompare(pkgDict[name], pkg) - if val == -1: + if val < 0: # we're newer, add this one pkgDict[name] = pkg elif val == 0: -- cgit