summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-05-13 20:16:12 +0000
committerJeremy Katz <katzj@redhat.com>2003-05-13 20:16:12 +0000
commitfe09bf2e8bcf6bee06f02ce3cdffb2ab0c10b375 (patch)
treec06b259236d45d088aaf98616e64e65cfb419c91
parent72015ab9f0b36a8094dc0d8d13d2fe632c167905 (diff)
downloadanaconda-fe09bf2e8bcf6bee06f02ce3cdffb2ab0c10b375.tar.gz
anaconda-fe09bf2e8bcf6bee06f02ce3cdffb2ab0c10b375.tar.xz
anaconda-fe09bf2e8bcf6bee06f02ce3cdffb2ab0c10b375.zip
JKFIXME: prunePPCKernels is an awful hack to let us do something
with kernel-iseries and kernel-pseries and still be able to get both of them for the pkgorder file. (cause of #90757, #90779)
-rw-r--r--comps.py12
-rwxr-xr-xscripts/pkgorder2
2 files changed, 9 insertions, 5 deletions
diff --git a/comps.py b/comps.py
index 0c11dbdf6..5951e6c75 100644
--- a/comps.py
+++ b/comps.py
@@ -190,7 +190,11 @@ class HeaderList:
preordered = 0
return preordered
- def __init__(self, hdlist, compatPackages = None, noscore = 0):
+ # JKFIXME: prunePPCKernels is an awful hack to let us do something
+ # with kernel-iseries and kernel-pseries and still be able to get
+ # both of them for the pkgorder file.
+ def __init__(self, hdlist, compatPackages = None, noscore = 0,
+ prunePPCKernels = 1):
self.hdlist = hdlist
self.packages = {}
newCompat = []
@@ -200,14 +204,14 @@ class HeaderList:
# we should only keep kernel-pseries and kernel-iseries on
# the appropriate machine
- if name == "kernel-pseries" and iutil.getPPCMachine() != "pSeries":
+ if prunePPCKernels and name == "kernel-pseries" and iutil.getPPCMachine() != "pSeries":
continue
- if name == "kernel-iseries" and iutil.getPPCMachine() != "iSeries":
+ if prunePPCKernels and name == "kernel-iseries" and iutil.getPPCMachine() != "iSeries":
continue
# FIXME: this is a really bad hack so that we can try to avoid
# weirdness with kernel packages
- if name == "kernel-iseries" or name == "kernel-pseries":
+ if prunePPCKernels and (name == "kernel-iseries" or name == "kernel-pseries"):
self.packages["kernel"] = Package(h)
if noscore:
diff --git a/scripts/pkgorder b/scripts/pkgorder
index 85e72cd1c..7abc10c23 100755
--- a/scripts/pkgorder
+++ b/scripts/pkgorder
@@ -68,7 +68,7 @@ disc2Dir = distDir + "-disc2"
# pull in the hdlist
f = distDir + "/RedHat/base/hdlist"
try:
- hdlist = comps.HeaderListFromFile(f, noscore = 1)
+ hdlist = comps.HeaderListFromFile(f, noscore = 1, prunePPCKernels = 0)
hdlist.mergeFullHeaders(distDir + "/RedHat/base/hdlist2")
except rpm.error:
print "Failed to read header list", f