BUG:FIXED:6795

This commit is contained in:
Faik Uygur
2008-03-21 13:21:45 +00:00
parent 366ff6229c
commit 6d570aa53d
+3 -3
View File
@@ -172,13 +172,13 @@ class Fetcher:
proxies = {}
if ctx.config.values.general.http_proxy and self.url.scheme() == "http":
proxies[pisi.uri.URI(http_proxy).scheme()] = ctx.config.values.general.http_proxy
proxies[pisi.uri.URI(ctx.config.values.general.http_proxy).scheme()] = ctx.config.values.general.http_proxy
if ctx.config.values.general.https_proxy and self.url.scheme() == "https":
proxies[pisi.uri.URI(https_proxy).scheme()] = ctx.config.values.general.https_proxy
proxies[pisi.uri.URI(ctx.config.values.general.https_proxy).scheme()] = ctx.config.values.general.https_proxy
if ctx.config.values.general.ftp_proxy and self.url.scheme() == "ftp":
proxies[pisi.uri.URI(ftp_proxy).scheme()] = ctx.config.values.general.ftp_proxy
proxies[pisi.uri.URI(ctx.config.values.general.ftp_proxy).scheme()] = ctx.config.values.general.ftp_proxy
if self.url.scheme() in proxies:
ctx.ui.info(_("Proxy configuration has been found for '%s' protocol") % self.url.scheme())