summaryrefslogtreecommitdiffstats
path: root/findpackageset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-08-02 02:24:19 +0000
committerJeremy Katz <katzj@redhat.com>2002-08-02 02:24:19 +0000
commit026a36197ff8eb4baa7943a5b83daa004f0a9e62 (patch)
treee762ef0bde66c0b057cf73402e66a7b8e0f8a4d0 /findpackageset.py
parent36ace948a69a0e3d8f7d5b721b6e4d53c3628a7b (diff)
downloadanaconda-026a36197ff8eb4baa7943a5b83daa004f0a9e62.tar.gz
anaconda-026a36197ff8eb4baa7943a5b83daa004f0a9e62.tar.xz
anaconda-026a36197ff8eb4baa7943a5b83daa004f0a9e62.zip
oops, this isn't right but would only be an impact if there were multiple versions of packages in a header list
Diffstat (limited to 'findpackageset.py')
-rw-r--r--findpackageset.py2
1 files changed, 1 insertions, 1 deletions
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: