python-pip/pip-8.1.2-shipped-requests-cabundle.patch
Jan Matejek 8e50cef319 Accepting request 460233 from devel:languages:python:singlespec
- update for singlespec
- fix alternative priorities
- drop cacert.pem and add pip-8.1.2-shipped-requests-cabundle.patch
  to ensure function without it
- add ca-certificates{,-mozilla} dependency to ensure existence of CA bundle
- add fdupes

OBS-URL: https://build.opensuse.org/request/show/460233
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=46
2017-02-24 14:34:50 +00:00

14 lines
535 B
Diff

diff -ruN a/pip/_vendor/requests/certs.py b/pip/_vendor/requests/certs.py
--- a/pip/_vendor/requests/certs.py 2014-05-16 20:03:31.000000000 +0200
+++ b/pip/_vendor/requests/certs.py 2014-07-03 09:54:46.751966582 +0200
@@ -19,8 +19,7 @@
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/ca-bundle.pem"
if __name__ == '__main__':
print(where())