summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2006-09-20 18:12:41 +0000
committerJeremy Katz <katzj@redhat.com>2006-09-20 18:12:41 +0000
commitc0368fa9f2d5efde2f83fe57bcca7055038f3711 (patch)
treef5b9900b0b9655b434839ecaef09d731a615169d /iutil.py
parent08c43306c30aba207a163293cfe5c2e40a01ca9b (diff)
downloadanaconda-c0368fa9f2d5efde2f83fe57bcca7055038f3711.tar.gz
anaconda-c0368fa9f2d5efde2f83fe57bcca7055038f3711.tar.xz
anaconda-c0368fa9f2d5efde2f83fe57bcca7055038f3711.zip
2006-09-20 Jeremy Katz <katzj@redhat.com>
* anaconda (Anaconda.setMethod): Allow passing --targetarch (#206881) * flags.py (Flags.__init__): Set targetarch as a flag * iutil.py (writeRpmPlatform): Use flag
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/iutil.py b/iutil.py
index a53f9a874..73d5012cc 100644
--- a/iutil.py
+++ b/iutil.py
@@ -399,8 +399,8 @@ def writeRpmPlatform(root="/"):
myarch = rhpl.arch.canonArch
# now allow an override with rpmarch=i586 on the command line (#101971)
- if flags.cmdline.has_key("rpmarch"):
- myarch = flags.cmdline["rpmarch"]
+ if flags["targetarch"] != None:
+ myarch = flags["targetarch"]
# now make the current install believe it, too
rhpl.arch.canonArch = myarch