python-requests/python-requests-system-cert-bundle.patch
Toshio Kuratomi ad439987b8 Let brp_python_bytecompile run again, take care of the non-python{2,3} modules
by removing them from the python{,3}-requests package that they did not belong
  in.
- Use the certificates in the ca-certificates package instead of the bundled one
  + https://bugzilla.redhat.com/show_bug.cgi?id=904614
- Fix a problem with cookie handling
  + https://bugzilla.redhat.com/show_bug.cgi?id=906924
2013-02-08 12:36:37 -08:00

17 lines
523 B
Diff

Index: requests-0.14.1/requests/certs.py
===================================================================
--- requests-0.14.1.orig/requests/certs.py
+++ requests-0.14.1/requests/certs.py
@@ -21,7 +21,10 @@ def where():
return certifi.where()
else:
f = os.path.split(__file__)[0]
- return os.path.join(f, 'cacert.pem')
+ path = os.path.join(f, 'cacert.pem')
+ if os.path.exists(path):
+ return path
+ return None
if __name__ == '__main__':
print(where())