libcurl uses $http_proxy et al by default.  The only way
to disable this is setting proxy to "".
---
 urlgrabber/grabber.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
index f89b5d7..cedd865 100644
--- a/urlgrabber/grabber.py
+++ b/urlgrabber/grabber.py
@@ -1376,6 +1376,8 @@ class PyCurlFileObject(object):
             
         # proxy
         if opts.proxy:
+            if opts.proxy.endswith('://'):
+                opts.proxy = ''
             self.curl_obj.setopt(pycurl.PROXY, opts.proxy)
             self.curl_obj.setopt(pycurl.PROXYAUTH, pycurl.HTTPAUTH_ANY)
 
-- 
1.7.4.4

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

Reply via email to