gentoo-overlay/dev-python/requests/files/requests-2.4.0-system-cacerts.patch

14 lines
548 B
Diff

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')