summaryrefslogtreecommitdiffstats
path: root/flags.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 /flags.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 'flags.py')
-rw-r--r--flags.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/flags.py b/flags.py
index d0310fcc7..764c58325 100644
--- a/flags.py
+++ b/flags.py
@@ -62,6 +62,7 @@ class Flags:
self.__dict__['flags']['dmraid'] = 1
self.__dict__['flags']['selinux'] = SELINUX_DEFAULT
self.__dict__['flags']['debug'] = 0
+ self.__dict__['flags']['targetarch'] = None
self.__dict__['flags']['cmdline'] = self.createCmdlineDict()
# for non-physical consoles like some ppc and sgi altix,
# we need to preserve the console device and not try to
@@ -78,6 +79,9 @@ class Flags:
if self.__dict__['flags']['cmdline'].has_key("debug"):
self.__dict__['flags']['debug'] = self.__dict__['flags']['cmdline']['debug']
+ if self.__dict__['flags']['cmdline'].has_key("rpmarch"):
+ self.__dict__['flags']['targetarch'] = self.__dict__['flags']['cmdline']['rpmarch']
+
if not os.path.exists("/selinux/load"):
self.__dict__['flags']['selinux'] = 0