summaryrefslogtreecommitdiffstats
path: root/findpackageset.py
diff options
context:
space:
mode:
authorPaul Nasrat <pnasrat@redhat.com>2004-09-30 12:07:11 +0000
committerPaul Nasrat <pnasrat@redhat.com>2004-09-30 12:07:11 +0000
commit1045fe2f8e6bbb8d5a5d0a57dc5c7aa5270e94b8 (patch)
treed3a74c5b3e0829e6fb5548c9cebb7cd8b8644e99 /findpackageset.py
parentf4909d225890eb2ddae060f1e0c3ca34058da876 (diff)
downloadanaconda-1045fe2f8e6bbb8d5a5d0a57dc5c7aa5270e94b8.tar.gz
anaconda-1045fe2f8e6bbb8d5a5d0a57dc5c7aa5270e94b8.tar.xz
anaconda-1045fe2f8e6bbb8d5a5d0a57dc5c7aa5270e94b8.zip
For complex case we only want our own list
Diffstat (limited to 'findpackageset.py')
-rw-r--r--findpackageset.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/findpackageset.py b/findpackageset.py
index c08cff460..b67a89f52 100644
--- a/findpackageset.py
+++ b/findpackageset.py
@@ -28,14 +28,14 @@ def addNewPackageToUpgSet(pkgDict, pkg):
def comparePackageForUpgrade(updDict, h, pkg):
val = rpm.versionCompare(h, pkg)
if (val > 0):
- dEBUG("found older version of %(name)s %(arch)s" % h)
+# dEBUG("found older version of %(name)s %(arch)s" % h)
pass
elif (val < 0):
- dEBUG("found newer version of %(name)s %(arch)s" % h)
+# dEBUG("found newer version of %(name)s %(arch)s" % h)
# check if we already have this package in our dictionary
addNewPackageToUpgSet(updDict, pkg)
else:
- dEBUG("found same verison of %(name)s %(arch)s" % h)
+# dEBUG("found same verison of %(name)s %(arch)s" % h)
pass
def findBestArch(arch, archlist):
@@ -108,7 +108,7 @@ def findpackageset(hdrlist, dbPath='/'):
else:
# See if we have a better arch than that installed
if name in availNames.keys():
- bestarch = findBestArch(arch, availNames)
+ bestarch = findBestArch(arch, availNames[name])
if availDict.has_key((name,bestarch)):
h = instDict[(name,arch)]
pkg = availDict[(name,bestarch)]