File tree Expand file tree Collapse file tree 2 files changed +18
-26
lines changed
Expand file tree Collapse file tree 2 files changed +18
-26
lines changed Original file line number Diff line number Diff line change 1- --- a/python2/httplib2/certs.py
2- +++ b/python2/httplib2/certs.py
3- @@ -19,9 +19,7 @@ except ImportError:
4- pass
5-
6-
7- - BUILTIN_CA_CERTS = os.path.join(
8- - os.path.dirname(os.path.abspath(__file__)), "cacerts.txt"
9- - )
10- + BUILTIN_CA_CERTS = "/etc/ssl/certs/ca-certificates.crt"
11-
12-
13- def where():
14- --- a/python3/httplib2/certs.py
15- +++ b/python3/httplib2/certs.py
1+ diff --git a/httplib2/certs.py b/httplib2/certs.py
2+ index 59d1ffc70273..05339ccc6449 100644
3+ --- a/httplib2/certs.py
4+ +++ b/httplib2/certs.py
165@@ -19,9 +19,7 @@ except ImportError:
176 pass
187
2413
2514
2615 def where():
16+ diff --git a/tests/test_cacerts_from_env.py b/tests/test_cacerts_from_env.py
17+ index f04ba0e5d090..79d4bd905ffb 100644
2718--- a/tests/test_cacerts_from_env.py
2819+++ b/tests/test_cacerts_from_env.py
2920@@ -9,7 +9,7 @@ import tempfile
3021 import httplib2
3122
3223
3324- CA_CERTS_BUILTIN = os.path.join(os.path.dirname(httplib2.__file__), "cacerts.txt")
34- + CA_CERTS_BUILTIN = "/etc/ssl/certs/ca-certificates .crt"
25+ + CA_CERTS_BUILTIN = "/etc/ssl/certs/ca-ceriticates .crt"
3526 CERTIFI_CERTS_FILE = "unittest_certifi_file"
3627 CUSTOM_CA_CERTS = "unittest_custom_ca_certs"
3728
38-
Original file line number Diff line number Diff line change 11# Maintainer: Yukari Chiba <[email protected] >22
33pkgname=python-httplib2
4- pkgver=0.22 .0
5- pkgrel=2
4+ pkgver=0.31 .0
5+ pkgrel=1
66pkgdesc=' Comprehensive HTTP client library, supporting many features'
77arch=(' any' )
88url=' https://github.com/httplib2/httplib2'
@@ -30,19 +30,21 @@ makedepends=(
3030# 'python-cryptography'
3131# 'python-six'
3232# )
33+ # 0001: Downstream, use system certificates instead of the vendored one as
34+ # fallback
3335source=(
3436 " $pkgname ::git+$url #tag=v$pkgver "
35- ' use-system-certificates.patch'
37+ 0001-certs- use-system-certificates.patch
3638)
37- sha512sums=(' 19c5ad43141c9e042cf81ee84ac5c6ee8f57a89656042708e86f8b098456df1752bdcddf0830b3514871cf9a488ebd374d3742cc21621169f1ea15c881b2a4ad '
38- ' 012c74d59e3138b88824abe0bb62ad1b6b9a9b98e001913c2be8a36eaa9191213f768635a9165b2a8eb76726dcbc6c6bae0f18dccb969ff29364e16304a22ed5 ' )
39+ sha512sums=(' 3e97ca970b231388c7b29edd1aec7edde4b36266cec1f14c08ab84d6049a075d5cdabccddfc101075c75892db0a042936b298e02f3f8f28079d8a2a28a838f15 '
40+ ' b8cc1d5c9677bd2385ddd98f03fde37eadcff50405c745a444829652595c2593e4f05ee069e8ba1180a9143999890f34cd3f93b66e0d24b2c643b7d33e6ff1b4 ' )
3941
4042prepare () {
41- cd " $pkgname "
43+ _patch_ " $pkgname "
4244
43- # use system ca certificates
44- patch -p1 -i " $srcdir /use-system- certificates.patch "
45- rm -vf python{2,3}/ httplib2/cacerts.txt
45+ cd " $pkgname "
46+ # Remove vendored certificates
47+ rm -vf httplib2/cacerts.txt
4648
4749 # patch requirements to allow newer versions of checkdepends
4850 sed -e ' s/==/>=/' -i requirements-test.txt
You can’t perform that action at this time.
0 commit comments