diff options
author | Jeremy Katz <katzj@redhat.com> | 2006-09-20 18:12:41 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2006-09-20 18:12:41 +0000 |
commit | c0368fa9f2d5efde2f83fe57bcca7055038f3711 (patch) | |
tree | f5b9900b0b9655b434839ecaef09d731a615169d /flags.py | |
parent | 08c43306c30aba207a163293cfe5c2e40a01ca9b (diff) | |
download | anaconda-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.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |