[PATCH master] Enable network when getting .treeinfo (#632526)

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

 



This is follow-up of bcl's [6/6] patchset backporting addon
repos from rhel6-branch. The patch is in my queue for rhel 6.1.

---
 pyanaconda/yuminstall.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index 1097823..1518143 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -721,6 +721,13 @@ class AnacondaYum(YumSorter):
         Try to get .treeinfo file from baseurl, optionally using proxy_url
         Saves the file into /tmp/.treeinfo
         """
+        if baseurl.startswith("http") or baseurl.startswith("ftp"):
+            if not network.hasActiveNetDev():
+                if not self.anaconda.intf.enableNetwork():
+                    log.error("Error downloading %s/.treeinfo: network enablement failed" %
+                              baseurl)
+                    return None
+
         try:
             ug = URLGrabber()
             if proxy_url:
-- 
1.7.2

_______________________________________________
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