summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authormsivak <msivak>2007-10-26 08:51:25 +0000
committermsivak <msivak>2007-10-26 08:51:25 +0000
commite8f54cd09cd4ee9eb0322db38054ef0663006091 (patch)
tree93c4402bf93836c6ea8c3e9a9c37c710f9127b7c /iutil.py
parentbe4afb2c00dfc1813ce75b360ee8ae8d470eb892 (diff)
downloadanaconda-e8f54cd09cd4ee9eb0322db38054ef0663006091.tar.gz
anaconda-e8f54cd09cd4ee9eb0322db38054ef0663006091.tar.xz
anaconda-e8f54cd09cd4ee9eb0322db38054ef0663006091.zip
Inform user about the arch mismatch and offer to upgrade rpm platform
Bug #217132 2007-10-26 Martin Sivak <msivak@redhat.com> * backend.py (doRepoSetup): Update the platform file if necessary * dispatch.py: Add new step for detecting platform upgrade * flags.py (Flags): Add flag for controlling the rpm platform update * iutil.py (writeRpmPlatform): Now controlled by the updateRpmPlatform flag * upgrade.py: Add isUpgradingArch, queryUpgradeArch and add the upgradearchitecture step (#217132)
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/iutil.py b/iutil.py
index cfce3e417..926b0c612 100644
--- a/iutil.py
+++ b/iutil.py
@@ -496,7 +496,7 @@ def writeRpmPlatform(root="/"):
if flags.test:
return
- if os.access("%s/etc/rpm/platform" %(root,), os.R_OK):
+ if not flags.updateRpmPlatform and 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,))