Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 639156 | Differences between
and this patch

Collapse All | Expand All

(-)a/mirrorselect/selectors.py (-3 / +3 lines)
Lines 53-58 else: Link Here
53
	HTTPError = urllib2.HTTPError
53
	HTTPError = urllib2.HTTPError
54
	import httplib
54
	import httplib
55
	IncompleteRead = httplib.IncompleteRead
55
	IncompleteRead = httplib.IncompleteRead
56
from ssl import CertificateError
56
57
57
58
58
from mirrorselect.output import encoder, get_encoding, decode_selection
59
from mirrorselect.output import encoder, get_encoding, decode_selection
Lines 387-393 class Deep(object): Link Here
387
			finally:
388
			finally:
388
				signal.alarm(0)
389
				signal.alarm(0)
389
390
390
		except EnvironmentError as e:
391
		except (EnvironmentError, CertificateError) as e:
391
			self.output.write(('\ndeeptime(): download from host %s '
392
			self.output.write(('\ndeeptime(): download from host %s '
392
				'failed for ip %s: %s\n') % (url_parts.hostname, ip, e), 2)
393
				'failed for ip %s: %s\n') % (url_parts.hostname, ip, e), 2)
393
			return (None, True)
394
			return (None, True)
Lines 430-436 class Deep(object): Link Here
430
			if len(ips) == 1:
431
			if len(ips) == 1:
431
				test_url = url_unparse(url_parts)
432
				test_url = url_unparse(url_parts)
432
				return self._test_connection(test_url, url_parts, ip, [])
433
				return self._test_connection(test_url, url_parts, ip, [])
433
		except EnvironmentError as e:
434
		except (EnvironmentError, CertificateError) as e:
434
			self.output.write('deeptime(): connection to host %s '
435
			self.output.write('deeptime(): connection to host %s '
435
				'failed for ip %s:\n            %s\n'
436
				'failed for ip %s:\n            %s\n'
436
				% (url_parts.hostname, ip, e), 2)
437
				% (url_parts.hostname, ip, e), 2)
437
- 

Return to bug 639156