summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-06-10 04:44:23 +0000
committerJeremy Katz <katzj@redhat.com>2003-06-10 04:44:23 +0000
commit6331b0b1c0f04ee6239dd188ada033a4dc3d56eb (patch)
tree13c9b5db3ec9e0aa885df9f9522f3d79448d5c05 /scripts
parent5946f329b21dba0b77c100196412479e2d2ef5c6 (diff)
downloadanaconda-6331b0b1c0f04ee6239dd188ada033a4dc3d56eb.tar.gz
anaconda-6331b0b1c0f04ee6239dd188ada033a4dc3d56eb.tar.xz
anaconda-6331b0b1c0f04ee6239dd188ada033a4dc3d56eb.zip
merge changes from taroon since new rhpl in dist-10 will require them
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/pkgorder13
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/pkgorder b/scripts/pkgorder
index a7f77dbfa..33eef6156 100755
--- a/scripts/pkgorder
+++ b/scripts/pkgorder
@@ -35,13 +35,16 @@ def cmpHeaderByName(h1, h2):
def addIfNeeded(pkg):
global pkgOrder, pkgHash
- canon = rhpl.arch.canonArch
- second = rhpl.arch.getSecondaryArch()
+ multi = rhpl.arch.getMultiArchInfo()
+ if multi is not None:
+ prim = multi[1]
+ second = multi[2]
+
diff = rhpl.arch.archDifference
if not pkgHash.has_key (pkg.name):
pkgHash[pkg.name] = [ pkg ]
pkgOrder.append(pkg.nevra())
- elif second is None:
+ elif multi is None:
# this isn't a biarch arch, so we don't need to worry about
# multiple glibcs
return
@@ -57,8 +60,8 @@ def addIfNeeded(pkg):
# if one of them doesn't work for the canon arch and the other
# does, then one of them is for the secondary arch and we want
# to add it.
- if ( ((diff(canon, arch1) == 0) and (diff(second, arch2) != 0)) or
- ((diff(canon, arch2) == 0) and (diff(second, arch1) != 0)) ):
+ if ( ((diff(prim, arch1) == 0) and (diff(second, arch2) != 0)) or
+ ((diff(prim, arch2) == 0) and (diff(second, arch1) != 0)) ):
pkgHash[pkg.name].append(pkg)
pkgOrder.append(pkg.nevra())