diff options
author | Chris Lumens <clumens@redhat.com> | 2009-06-01 14:26:27 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-06-01 14:26:27 -0400 |
commit | 86fb9ed2ad5f846b7f490940bca5528ae397c643 (patch) | |
tree | 201b3751865a18795657dfd048a044308ea61190 /iutil.py | |
parent | 2aa6d8f67c6bb9a08948e6d520011900e8d1de61 (diff) | |
download | anaconda-86fb9ed2ad5f846b7f490940bca5528ae397c643.tar.gz anaconda-86fb9ed2ad5f846b7f490940bca5528ae397c643.tar.xz anaconda-86fb9ed2ad5f846b7f490940bca5528ae397c643.zip |
We no longer write out /etc/rpm/platform, so don't offer to upgrade it.
Diffstat (limited to 'iutil.py')
-rw-r--r-- | iutil.py | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -560,14 +560,14 @@ def isEfi(): return efi -## Generate the /etc/rpm/platform and /etc/rpm/macros files. +## Generate the /etc/rpm/macros file. # @param root The root of the filesystem to create the files in. def writeRpmPlatform(root="/"): import rhpl.arch if flags.test: return - if not flags.updateRpmPlatform and os.access("%s/etc/rpm/platform" %(root,), os.R_OK): + if os.access("%s/etc/rpm/platform" %(root,), os.R_OK): return if not os.access("%s/etc/rpm" %(root,), os.X_OK): os.mkdir("%s/etc/rpm" %(root,)) @@ -581,10 +581,6 @@ def writeRpmPlatform(root="/"): # 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,)) -# f.close() - # FIXME: writing /etc/rpm/macros feels wrong somehow # temporary workaround for #92285 if not (myarch.startswith("ppc64") or |