[f16-branch] Fix traceback when installing over a system with broken rpm db.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It presented itself as "TypeError: expected string or buffer".

Resolves: rhbz#728883
---
 pyanaconda/storage/__init__.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py
index abfdb55..00ec25d 100644
--- a/pyanaconda/storage/__init__.py
+++ b/pyanaconda/storage/__init__.py
@@ -1521,6 +1521,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):
-- 
1.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux