summaryrefslogtreecommitdiffstats
path: root/pyanaconda
diff options
context:
space:
mode:
authorAles Kozumplik <akozumpl@redhat.com>2011-08-30 16:21:10 +0200
committerAles Kozumplik <akozumpl@redhat.com>2011-08-31 10:00:07 +0200
commite784b4b6e1b02dfdbab4fc45fccf9d13cc17c764 (patch)
tree63e29ca9c5841d8fe9116adb802d7836e80c3afc /pyanaconda
parentc12838c170040e035864e079de45c544dd7d8e7a (diff)
downloadanaconda-e784b4b6e1b02dfdbab4fc45fccf9d13cc17c764.tar.gz
anaconda-e784b4b6e1b02dfdbab4fc45fccf9d13cc17c764.tar.xz
anaconda-e784b4b6e1b02dfdbab4fc45fccf9d13cc17c764.zip
Fix traceback when installing over a system with broken rpm db.
It presented itself as "TypeError: expected string or buffer". Resolves: rhbz#728883
Diffstat (limited to 'pyanaconda')
-rw-r--r--pyanaconda/storage/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py
index 889ddbc64..d37b7f64f 100644
--- a/pyanaconda/storage/__init__.py
+++ b/pyanaconda/storage/__init__.py
@@ -1523,6 +1523,10 @@ def findExistingRootDevices(anaconda, upgradeany=False):
# This likely isn't our product, so don't even count it as
# notUpgradable.
continue
+ if arch is None:
+ # we failed to determine the arch (for instance when there is a
+ # corrupted rpm database on the target system)
+ continue
if upgradeany or \
anaconda.instClass.productUpgradable(arch, product, version):