void-packages/srcpkgs/python-requests/patches/use-system-cacerts.patch
Alessio Sergi 9088d4ba93 python-requests: update to 2.5.3
Re-do unbundling with symlinks.
Patch is needed to use system ca-certificates instead of bundled ones.
2015-02-28 20:02:42 +01:00

15 lines
455 B
Diff

diff --git requests/certs.py requests/certs.py
index 07e6475..2f2d79b 100644
--- requests/certs.py
+++ requests/certs.py
@@ -18,8 +18,7 @@ try:
except ImportError:
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())