Blame SOURCES/BZ-1293670-proxy.patch

eb5f31
diff -up yum-3.2.29/yum/config.py.old yum-3.2.29/yum/config.py
eb5f31
--- yum-3.2.29/yum/config.py.old	2015-12-22 16:33:42.907483221 +0100
eb5f31
+++ yum-3.2.29/yum/config.py	2015-12-22 16:34:15.329584138 +0100
eb5f31
@@ -202,7 +202,7 @@ class UrlOption(Option):
eb5f31
         # Handle the "_none_" special case
eb5f31
         if url.lower() == '_none_':
eb5f31
             if self.allow_none:
eb5f31
-                return None
eb5f31
+                return '_none_'
eb5f31
             else:
eb5f31
                 raise ValueError('"_none_" is not a valid value')
eb5f31
 
eb5f31
diff -up yum-3.2.29/yum/yumRepo.py.old yum-3.2.29/yum/yumRepo.py
eb5f31
--- yum-3.2.29/yum/yumRepo.py.old	2015-12-22 16:35:08.330749108 +0100
eb5f31
+++ yum-3.2.29/yum/yumRepo.py	2015-12-22 16:36:37.668027178 +0100
eb5f31
@@ -432,7 +432,7 @@ class YumRepository(Repository, config.R
eb5f31
         self._proxy_dict = {} # zap it
eb5f31
         proxy_string = None
eb5f31
         empty = (None, '_none_', '')
eb5f31
-        if self.proxy is None:  # got 'proxy=_none_'
eb5f31
+        if self.proxy in empty:  # got 'proxy=_none_'
eb5f31
             proxy_string = ''   # this disables default proxies
eb5f31
         elif self.proxy:
eb5f31
             proxy_string = '%s' % self.proxy