The underlying curl bug "auth status not being cleared
when handles are reset" was fixed in 7.28.0

https://sourceforge.net/p/curl/bugs/1127/
---
 urlgrabber/grabber.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
index 6ce9861..d2ac949 100644
--- a/urlgrabber/grabber.py
+++ b/urlgrabber/grabber.py
@@ -1417,9 +1417,11 @@ class PyCurlFileObject(object):
         # proxy
         if opts.proxy is not None:
             self.curl_obj.setopt(pycurl.PROXY, opts.proxy)
-            self.curl_obj.setopt(pycurl.PROXYAUTH,
+            auth = pycurl.HTTPAUTH_ANY
+            if pycurl.version_info()[2] < 0x71500: # 7.28.0
                 # All but Kerberos.  BZ 769254
-                pycurl.HTTPAUTH_ANY - pycurl.HTTPAUTH_GSSNEGOTIATE)
+                auth &= ~pycurl.HTTPAUTH_GSSNEGOTIATE
+            self.curl_obj.setopt(pycurl.PROXYAUTH, auth)
 
         if opts.username and opts.password:
             if self.scheme in ('http', 'https'):
-- 
1.7.4.4

_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to