Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 491764 Details for
Bug 604968
app-portage/mirrorselect gives SSL certificate error for mirror.dkm.cz
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Simpler patch to handle ssl.CertificateError
mirrorselect.patch (text/plain), 738 bytes, created by
Daniel Harding
on 2017-09-02 11:13:17 UTC
(
hide
)
Description:
Simpler patch to handle ssl.CertificateError
Filename:
MIME Type:
Creator:
Daniel Harding
Created:
2017-09-02 11:13:17 UTC
Size:
738 bytes
patch
obsolete
>diff --git a/mirrorselect/selectors.py b/mirrorselect/selectors.py >index cf70b21..58a44a1 100644 >--- a/mirrorselect/selectors.py >+++ b/mirrorselect/selectors.py >@@ -31,6 +31,7 @@ Distributed under the terms of the GNU General Public License v2 > import math > import signal > import socket >+import ssl > import subprocess > import sys > import time >@@ -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, ssl.CertificateError) as e: > self.output.write('deeptime(): connection to host %s ' > 'failed for ip %s:\n %s\n' > % (url_parts.hostname, ip, e), 2)
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 604968
:
473178
| 491764 |
559198