summaryrefslogtreecommitdiff
path: root/dev-python/requests/files/requests-2.4.0-system-cacerts.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/requests/files/requests-2.4.0-system-cacerts.patch')
-rw-r--r--dev-python/requests/files/requests-2.4.0-system-cacerts.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-python/requests/files/requests-2.4.0-system-cacerts.patch b/dev-python/requests/files/requests-2.4.0-system-cacerts.patch
new file mode 100644
index 00000000000..e3a41d9dadb
--- /dev/null
+++ b/dev-python/requests/files/requests-2.4.0-system-cacerts.patch
@@ -0,0 +1,14 @@
+diff -ur requests-2.4.0.orig/requests/certs.py requests-2.4.0/requests/certs.py
+--- requests/certs.py 2014-08-20 00:52:58.000000000 +0800
++++ requests/certs.py 2014-09-09 14:17:33.237264068 +0800
+@@ -18,6 +18,10 @@
+ except ImportError:
+ def where():
+ """Return the preferred certificate bundle."""
++ cacerts = '/etc/ssl/certs/ca-certificates.crt'
++ if os.path.exists(cacerts):
++ return cacerts
++
+ # vendored bundle inside Requests
+ return os.path.join(os.path.dirname(__file__), 'cacert.pem')
+