diff options
author | Daniele Tricoli <eriol@mornie.org> | 2012-02-05 00:30:09 +0000 |
---|---|---|
committer | Daniele Tricoli <eriol@mornie.org> | 2012-02-05 00:30:09 +0000 |
commit | 64f4534b6dbc2be09384483579d53627daf28995 (patch) | |
tree | 445102e2c7ea62e30491aec2b3a8ddf4a5f3c6e6 | |
parent | e5f81f996be2c4290ec08ab68ce83b5685c3e276 (diff) | |
download | python-requests-64f4534b6dbc2be09384483579d53627daf28995.tar python-requests-64f4534b6dbc2be09384483579d53627daf28995.tar.gz |
* 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
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/patches/01_do-not-use-python-certifi.patch | 31 | ||||
-rw-r--r-- | debian/patches/series | 1 |
3 files changed, 36 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 5f7f699..393a8cf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,8 +5,11 @@ requests (0.10.1-1) UNRELEASED; urgency=low - 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@mornie.org> Sun, 05 Feb 2012 01:08:35 +0100 + -- Daniele Tricoli <eriol@mornie.org> Sun, 05 Feb 2012 01:24:59 +0100 requests (0.8.2-1) unstable; urgency=low diff --git a/debian/patches/01_do-not-use-python-certifi.patch b/debian/patches/01_do-not-use-python-certifi.patch new file mode 100644 index 0000000..9887716 --- /dev/null +++ b/debian/patches/01_do-not-use-python-certifi.patch @@ -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@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') diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..94aff1f --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +01_do-not-use-python-certifi.patch |