[PATCH RHEL6] Catch .treeinfo errors (#715130)

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

 



cherry-picked from 70e02237a23ce8a7e37508f735584bcd6c6a256c

Resolves: rhbz#715130
---
 yuminstall.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index 6fe1e19..772f94d 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -683,8 +683,11 @@ class AnacondaYum(YumSorter):
 
         # We need to know which variant is being installed so we know what addons
         # are valid options.
-        ConfigParser.read(c, treeinfo)
-        variant = c.get("general", "variant")
+        try:
+            ConfigParser.read(c, treeinfo)
+            variant = c.get("general", "variant")
+        except:
+            return retval
 
         section = "variant-%s" % variant
         if c.has_section(section) and c.has_option(section, "addons"):
-- 
1.7.4.4

_______________________________________________
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