[PATCH 1/3] If getting .treeinfo fails, try treeinfo (#635065).

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

 



---
 yuminstall.py |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index abcd283..a38bdf7 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -689,13 +689,18 @@ class AnacondaYum(YumSorter):
                     return None
                 urlgrabber.grabber.reset_curl_obj()
 
+        ug = URLGrabber()
+
         try:
-            ug = URLGrabber()
             ug.urlgrab("%s/.treeinfo" % baseurl, "/tmp/.treeinfo", copy_local=1)
-            return "/tmp/.treeinfo"
         except Exception as e:
-            log.error("Error downloading %s/.treeinfo: %s" % (baseurl, e))
-            return None
+            try:
+                ug.urlgrab("%s/treeinfo", baseurl, "/tmp/.treeinfo", copy_local=1)
+            except Exception as e:
+                log.error("Error downloading treeinfo file: %s" % (baseurl, e))
+                return None
+
+        return "/tmp/.treeinfo"
 
     # We need to make sure $releasever gets set up before .repo files are
     # read.  Since there's no redhat-release package in /mnt/sysimage (and
-- 
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