diff --git a/pisi/fetcher.py b/pisi/fetcher.py index 5200e7d4..f39971ed 100644 --- a/pisi/fetcher.py +++ b/pisi/fetcher.py @@ -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())