idella4     14/09/09 06:47:52

  Added:                requests-2.4.0-system-cacerts.patch
  Log:
  bump
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
0xB8072B0D)

Revision  Changes    Path
1.1                  
dev-python/requests/files/requests-2.4.0-system-cacerts.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/requests/files/requests-2.4.0-system-cacerts.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/requests/files/requests-2.4.0-system-cacerts.patch?rev=1.1&content-type=text/plain

Index: requests-2.4.0-system-cacerts.patch
===================================================================
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')
 




Reply via email to