1 |
commit: 16c4aebc0a90b98c50f4df58abd63066196cefc7 |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 28 19:43:46 2014 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Wed May 28 19:43:46 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mirrorselect.git;a=commit;h=16c4aebc |
7 |
|
8 |
Update for recent ssl-fetch changes |
9 |
|
10 |
--- |
11 |
mirrorselect/extractor.py | 10 +++++++++- |
12 |
1 file changed, 9 insertions(+), 1 deletion(-) |
13 |
|
14 |
diff --git a/mirrorselect/extractor.py b/mirrorselect/extractor.py |
15 |
index eb26faf..b9ed15e 100644 |
16 |
--- a/mirrorselect/extractor.py |
17 |
+++ b/mirrorselect/extractor.py |
18 |
@@ -104,7 +104,15 @@ class Extractor(object): |
19 |
|
20 |
self.output.print_info('Downloading a list of mirrors...\n') |
21 |
|
22 |
- fetcher = Connector(self.output, self.proxies, USERAGENT) |
23 |
+ # setup the ssl-fetch ouptut map |
24 |
+ connector_output = { |
25 |
+ 'info':self.output.write, |
26 |
+ 'error': self.output.print_err, |
27 |
+ 'args-info': {'level': 2}, |
28 |
+ 'args-error': {'level':0}, |
29 |
+ } |
30 |
+ |
31 |
+ fetcher = Connector(connector_output, self.proxies, USERAGENT) |
32 |
success, mirrorlist, timestamp = fetcher.fetch_content(url) |
33 |
parser.parse(mirrorlist) |