summarylogtreecommitdiffstats
path: root/certs.patch
diff options
context:
space:
mode:
authorCedric Girard2015-12-04 16:25:17 +0100
committerCedric Girard2015-12-04 16:25:17 +0100
commitda1fbb7342aad3638053aafac9cd451cd59bd4bd (patch)
tree637832e5425b253611508bfb1ef87f156e48fd40 /certs.patch
parent3de0e75d6900d0c92dcec8c9a89e16ca52055294 (diff)
downloadaur-da1fbb7342aad3638053aafac9cd451cd59bd4bd.tar.gz
update patch file and deps
Diffstat (limited to 'certs.patch')
-rw-r--r--certs.patch22
1 files changed, 12 insertions, 10 deletions
diff --git a/certs.patch b/certs.patch
index c428c8b6f038..69d27be85abf 100644
--- a/certs.patch
+++ b/certs.patch
@@ -1,17 +1,19 @@
---- requests/certs.py 2013-02-06 22:16:59.811389080 +0100
-+++ requests/certs.py.diff 2013-02-06 22:20:07.051490687 +0100
-@@ -12,13 +12,11 @@
+--- requests/certs.py.orig 2015-12-04 16:16:33.773055294 +0100
++++ requests/certs.py 2015-12-04 16:20:30.106729891 +0100
+@@ -11,7 +11,6 @@
+ environment, you can change the definition of where() to return a separately
packaged CA bundle.
"""
-
-import os.path
--
- def where():
- """Return the preferred certificate bundle."""
- # vendored bundle inside Requests
-- return os.path.join(os.path.dirname(__file__), 'cacert.pem')
-+ return "/etc/ssl/certs/ca-certificates.crt"
+ try:
+ from certifi import where
+@@ -19,7 +18,7 @@
+ def where():
+ """Return the preferred certificate bundle."""
+ # vendored bundle inside Requests
+- return os.path.join(os.path.dirname(__file__), 'cacert.pem')
++ return "/etc/ssl/certs/ca-certificates.crt"
if __name__ == '__main__':
print(where())