[PATCH] Use global proxy setting if no repo proxy is set (#712926)

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

 



If there is no repo proxy set we should use the global setting.

This fixes a problem for users who only have proxy access to the network
-- previously it was trying to pull .treeinfo directly and timing out
after 7 minutes.
---
 pyanaconda/yuminstall.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index 378d4a1..905e317 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -868,7 +868,7 @@ class AnacondaYum(yum.YumBase):
         initialRepos = self.repos.repos.values() + extraRepos
         for repo in filter(lambda r: r.isEnabled(), initialRepos):
             addons = self._getAddons(repo.mirrorlist or repo.baseurl[0],
-                                     repo.proxy_url,
+                                     repo.proxy_url or self.proxy_url,
                                      repo.sslverify)
             for addon in addons:
                 addonRepo = AnacondaYumRepo(addon[0])
-- 
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