summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-04-27 20:34:04 +0000
committerJeremy Katz <katzj@redhat.com>2005-04-27 20:34:04 +0000
commitd14c4b4a431e0b528cc0b3bdd72b6454c36bd04a (patch)
treea67b0089402c9ea73267e1a4a075136ede1f1d7d /iutil.py
parentb49f685e37333985100737be4d5c7a647c937afd (diff)
downloadanaconda-d14c4b4a431e0b528cc0b3bdd72b6454c36bd04a.tar.gz
anaconda-d14c4b4a431e0b528cc0b3bdd72b6454c36bd04a.tar.xz
anaconda-d14c4b4a431e0b528cc0b3bdd72b6454c36bd04a.zip
2005-04-27 Jeremy Katz <katzj@redhat.com>
* iutil.py (writeRpmPlatform): patch from Joe Pruett to improve rpmarch= support (#101971) * iw/ipwidget.py (IPEditor.dehydrate): Make sure people get decimal IP addrs. (#122038)
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/iutil.py b/iutil.py
index 7711ade05..230ca2a33 100644
--- a/iutil.py
+++ b/iutil.py
@@ -662,10 +662,13 @@ def writeRpmPlatform(root="/"):
f = open("/proc/cmdline", "r")
buf = f.read()
f.close()
- args = buf.split(" ")
+ args = buf.split()
for arg in args:
if arg.startswith("rpmarch="):
myarch = arg[8:]
+
+ # now make the current install believe it, too
+ rhpl.arch.canonArch = myarch
f = open("%s/etc/rpm/platform" %(root,), 'w+')
f.write("%s-redhat-linux\n" %(myarch,))