aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mirrorselect/extractor.py')
-rw-r--r--mirrorselect/extractor.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/mirrorselect/extractor.py b/mirrorselect/extractor.py
index eb26faf..b9ed15e 100644
--- a/mirrorselect/extractor.py
+++ b/mirrorselect/extractor.py
@@ -104,7 +104,15 @@ class Extractor(object):
self.output.print_info('Downloading a list of mirrors...\n')
- fetcher = Connector(self.output, self.proxies, USERAGENT)
+ # setup the ssl-fetch ouptut map
+ connector_output = {
+ 'info':self.output.write,
+ 'error': self.output.print_err,
+ 'args-info': {'level': 2},
+ 'args-error': {'level':0},
+ }
+
+ fetcher = Connector(connector_output, self.proxies, USERAGENT)
success, mirrorlist, timestamp = fetcher.fetch_content(url)
parser.parse(mirrorlist)