[Python-modules-commits] r20322 - in packages/requests/trunk/debian (4 files)
eriol-guest at users.alioth.debian.org
eriol-guest at users.alioth.debian.org
Sun Feb 5 00:30:11 UTC 2012
Date: Sunday, February 5, 2012 @ 00:30:09
Author: eriol-guest
Revision: 20322
* debian/patches/01_do-not-use-python-certifi.patch
- To verify SSL certificates for HTTPS requests, use the bundle provided by
ca-certificates instead of python-certifi
Added:
packages/requests/trunk/debian/patches/
packages/requests/trunk/debian/patches/01_do-not-use-python-certifi.patch
packages/requests/trunk/debian/patches/series
Modified:
packages/requests/trunk/debian/changelog
Modified: packages/requests/trunk/debian/changelog
===================================================================
--- packages/requests/trunk/debian/changelog 2012-02-05 00:14:21 UTC (rev 20321)
+++ packages/requests/trunk/debian/changelog 2012-02-05 00:30:09 UTC (rev 20322)
@@ -5,8 +5,11 @@
- Added python-chardet to Recommends
- Bumped X-Python-Version >= 2.6
- Added ca-certificates to Depends
+ * debian/patches/01_do-not-use-python-certifi.patch
+ - To verify SSL certificates for HTTPS requests, use the bundle provided by
+ ca-certificates instead of python-certifi
- -- Daniele Tricoli <eriol at mornie.org> Sun, 05 Feb 2012 01:08:35 +0100
+ -- Daniele Tricoli <eriol at mornie.org> Sun, 05 Feb 2012 01:24:59 +0100
requests (0.8.2-1) unstable; urgency=low
Added: packages/requests/trunk/debian/patches/01_do-not-use-python-certifi.patch
===================================================================
--- packages/requests/trunk/debian/patches/01_do-not-use-python-certifi.patch (rev 0)
+++ packages/requests/trunk/debian/patches/01_do-not-use-python-certifi.patch 2012-02-05 00:30:09 UTC (rev 20322)
@@ -0,0 +1,31 @@
+Description: To verify SSL certificates for HTTPS requests, use the bundle
+ provided by ca-certificates instead of python-certifi.
+Author: Daniele Tricoli <eriol at mornie.org>
+Forwarded: not-needed
+Last-Update: 2012-02-05
+
+--- a/requests/models.py
++++ b/requests/models.py
+@@ -481,9 +481,9 @@
+ if not cert_loc:
+ cert_loc = os.environ.get('CURL_CA_BUNDLE')
+
+- # Use the awesome certifi list.
++ # On Debian use the bundle provided by ca-certificates.
+ if not cert_loc:
+- cert_loc = __import__('certifi').where()
++ cert_loc = '/etc/ssl/certs/ca-certificates.crt'
+
+ conn.cert_reqs = 'CERT_REQUIRED'
+ conn.ca_certs = cert_loc
+--- a/setup.py
++++ b/setup.py
+@@ -21,7 +21,7 @@
+ os.system('python test_requests.py')
+ sys.exit()
+
+-required = ['certifi>=0.0.7',]
++required = []
+
+ if is_py3:
+ required.append('chardet2')
Added: packages/requests/trunk/debian/patches/series
===================================================================
--- packages/requests/trunk/debian/patches/series (rev 0)
+++ packages/requests/trunk/debian/patches/series 2012-02-05 00:30:09 UTC (rev 20322)
@@ -0,0 +1 @@
+01_do-not-use-python-certifi.patch
More information about the Python-modules-commits
mailing list