Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 510026 Details for
Bug 639156
=app-portage/mirrorselect mirrorselect.selectors url_open'ed wrong URL and doesn't catch ssl.CertificateError exception
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH 1/2] selectors.py: fix crash on certificate verification failure
0001-selectors.py-fix-crash-on-certificate-verification-f.patch (text/plain), 1.43 KB, created by
Xiami
on 2017-12-14 10:56:53 UTC
(
hide
)
Description:
[PATCH 1/2] selectors.py: fix crash on certificate verification failure
Filename:
MIME Type:
Creator:
Xiami
Created:
2017-12-14 10:56:53 UTC
Size:
1.43 KB
patch
obsolete
>From 7006e5d381381147f7d7584a6c062a0d4d137a53 Mon Sep 17 00:00:00 2001 >From: Xiami <i@f2light.com> >Date: Thu, 14 Dec 2017 18:30:29 +0800 >Subject: [PATCH 1/2] selectors.py: fix crash on certificate verification > failure > >--- > mirrorselect/selectors.py | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/mirrorselect/selectors.py b/mirrorselect/selectors.py >index cf70b21..aee1b52 100644 >--- a/mirrorselect/selectors.py >+++ b/mirrorselect/selectors.py >@@ -53,6 +53,7 @@ else: > HTTPError = urllib2.HTTPError > import httplib > IncompleteRead = httplib.IncompleteRead >+from ssl import CertificateError > > > from mirrorselect.output import encoder, get_encoding, decode_selection >@@ -387,7 +388,7 @@ class Deep(object): > finally: > signal.alarm(0) > >- except EnvironmentError as e: >+ except (EnvironmentError, CertificateError) as e: > self.output.write(('\ndeeptime(): download from host %s ' > 'failed for ip %s: %s\n') % (url_parts.hostname, ip, e), 2) > return (None, True) >@@ -430,7 +431,7 @@ class Deep(object): > if len(ips) == 1: > test_url = url_unparse(url_parts) > return self._test_connection(test_url, url_parts, ip, []) >- except EnvironmentError as e: >+ except (EnvironmentError, CertificateError) as e: > self.output.write('deeptime(): connection to host %s ' > 'failed for ip %s:\n %s\n' > % (url_parts.hostname, ip, e), 2) > >base-commit: 18df6efa96f57830f26ca94c41e1f1e8cc30b3ca >-- >2.13.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 639156
: 510026 |
510028
|
511816