[PATCH 2/2] If there are any troubles reading the treeinfo file, return no addons.

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

 



It beats a traceback any day.
---
 pyanaconda/yuminstall.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index e00ea8f..6fb28f5 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -667,8 +667,11 @@ class AnacondaYum(yum.YumBase):
 
         # 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.1.1

_______________________________________________
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