diff options
author | Paul Nasrat <pnasrat@redhat.com> | 2005-02-08 00:42:45 +0000 |
---|---|---|
committer | Paul Nasrat <pnasrat@redhat.com> | 2005-02-08 00:42:45 +0000 |
commit | 55ef986ffd9c08e6905a98adc2aefd7d6c24f26f (patch) | |
tree | ad9b709b02a3cf5e8eb8f5140e803372d65b8bfb | |
parent | dc7780748da39fdc4f26242c70c442c0e6f7abf8 (diff) | |
download | anaconda-55ef986ffd9c08e6905a98adc2aefd7d6c24f26f.tar.gz anaconda-55ef986ffd9c08e6905a98adc2aefd7d6c24f26f.tar.xz anaconda-55ef986ffd9c08e6905a98adc2aefd7d6c24f26f.zip |
Don't use rpm.archscore as iseries upgrades don't work (#146915)
-rw-r--r-- | findpackageset.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/findpackageset.py b/findpackageset.py index df9904136..bb21691a4 100644 --- a/findpackageset.py +++ b/findpackageset.py @@ -43,12 +43,12 @@ def comparePackageForUpgrade(updDict, h, pkg): def findBestArch(archlist): bestarch = None for availarch in archlist: - newscore = rpm.archscore(availarch) + newscore = rhpl.arch.score(availarch) # unsupported if newscore <= 0: continue # If old arch is better or same - if bestarch and rpm.archscore(bestarch) <= newscore: + if bestarch and rhpl.arch.score(bestarch) <= newscore: continue # If we get here we're better @@ -61,7 +61,7 @@ def getAvailPackages(hdrlist): pkgDict = {} nameDict = {} for h in hdrlist: - score1 = rpm.archscore(h[rpm.RPMTAG_ARCH]) + score1 = rhpl.arch.score(h[rpm.RPMTAG_ARCH]) if (score1): name = h[rpm.RPMTAG_NAME] arch = h[rpm.RPMTAG_ARCH] |