aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2014-05-28 12:43:46 -0700
committerBrian Dolbec <dolsen@gentoo.org>2014-05-28 12:43:46 -0700
commit16c4aebc0a90b98c50f4df58abd63066196cefc7 (patch)
tree4130b9ede88b2f30e7ce81e871241fdeacfbf379 /mirrorselect/extractor.py
parentselectors.py: Add IncompleteRead exception (diff)
downloadmirrorselect-16c4aebc0a90b98c50f4df58abd63066196cefc7.tar.gz
mirrorselect-16c4aebc0a90b98c50f4df58abd63066196cefc7.tar.bz2
mirrorselect-16c4aebc0a90b98c50f4df58abd63066196cefc7.zip
Update for recent ssl-fetch changes
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)