summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-09-27 20:45:33 +0000
committerJeremy Katz <katzj@redhat.com>2004-09-27 20:45:33 +0000
commitd941ae392833eeb8bd2a30b04c20e89043a1324d (patch)
tree4990b1314d8d0d1c5d9f29e79e67d6f473d3dfdb /kickstart.py
parent684a2b2994bfdefffa031ccbae57431fff3dd3ef (diff)
downloadanaconda-d941ae392833eeb8bd2a30b04c20e89043a1324d.tar.gz
anaconda-d941ae392833eeb8bd2a30b04c20e89043a1324d.tar.xz
anaconda-d941ae392833eeb8bd2a30b04c20e89043a1324d.zip
004-09-27 Jeremy Katz <katzj@redhat.com>
* kickstart.py: Allow name.arch syntax for selecting a package in %packages (#124456)
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/kickstart.py b/kickstart.py
index f6a010424..4fbc4745f 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -1394,6 +1394,19 @@ class KickstartBase(BaseInstallClass):
# setPackageSelection()
def setPackageSelection(self, hdlist, intf):
for n in self.packageList:
+
+ # allow arch:name syntax
+ if n.find("."):
+ fields = n.split(".")
+ name = string.join(fields[:-1], ".")
+ arch = fields[-1]
+ if hdlist.pkgnames.has_key(name):
+ pkgs = hdlist.pkgnames[name]
+ for (nevra, parch) in pkgs:
+ if parch == arch:
+ hdlist.pkgs[nevra].select()
+ break
+
if hdlist.has_key(n):
hdlist[n].select()
elif self.handleMissing == KS_MISSING_IGNORE: