[RHEL6-BRANCH 2/2] fall back to global proxy for repos (#788537)

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

 



From: "Brian C. Lane" <bcl@xxxxxxxxxx>

If there is a global proxy setting and a repo does not have it's own
proxy setup, fall back to the global one.

Resolves: rhbz#788537
---
 yuminstall.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index 099de44..61a0b65 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -874,6 +874,9 @@ class AnacondaYum(YumSorter):
 
                 if ksrepo.proxy:
                     self.setProxy(ksrepo, repo)
+                elif self.anaconda.proxy:
+                    log.debug("%s will use the global proxy configuration", repo.name)
+                    self.setProxy(self.anaconda, repo)
 
                 repo.enable()
                 extraRepos.append(repo)
-- 
1.7.7.6

_______________________________________________
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