Fix issues with last checkin
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=19
This commit is contained in:
parent
83bc7fa8f8
commit
d22ba905da
@ -72,7 +72,7 @@ Features:
|
||||
|
||||
%prep
|
||||
%setup -q -n requests-%{version}
|
||||
%if 0%{?suse_version} && 0%{?suse_version} < 1220
|
||||
%if 0%{?suse_version} && 0%{?suse_version} >= 1220
|
||||
%patch0 -p1
|
||||
%endif
|
||||
|
||||
|
@ -12,7 +12,7 @@ Index: requests-0.12.1/requests/utils.py
|
||||
import zlib
|
||||
from netrc import netrc, NetrcParseError
|
||||
|
||||
@@ -51,9 +54,13 @@ def get_os_ca_bundle_path():
|
||||
@@ -51,9 +54,14 @@ def get_os_ca_bundle_path():
|
||||
return path
|
||||
return None
|
||||
|
||||
@ -22,6 +22,7 @@ Index: requests-0.12.1/requests/utils.py
|
||||
+# If SSL module can load a directory-based store, use that
|
||||
+try:
|
||||
+ _ssl.sslwrap(socket.socket()._sock, False, None, None, ssl.CERT_REQUIRED, ssl.PROTOCOL_SSLv23, "/etc/ssl/certs", None)
|
||||
+ DEFAULT_CA_BUNDLE_PATH = "/etc/ssl/certs"
|
||||
+except ssl.SSLError:
|
||||
+ # if certifi is installed, use its CA bundle;
|
||||
+ # otherwise, try and use the OS bundle
|
||||
|
Loading…
Reference in New Issue
Block a user