Debian Codegraph @

debian/patches/0001-Use-system-ca-certificates-not-the-bundled-ones.patch

raw
1 From: Marc Deslauriers <[email protected]>
2 Date: Wed, 5 Sep 2018 14:02:17 +0800
3 Subject: Use system ca certificates, not the bundled ones
4
5 Forwarded: not-needed
6 Bug-Ubuntu: https://launchpad.net/bugs/882027
7 ---
8 httplib2/certs.py | 4 +---
9 setup.py | 1 -
10 tests/test_cacerts_from_env.py | 2 +-
11 3 files changed, 2 insertions(+), 5 deletions(-)
12
13 diff --git a/httplib2/certs.py b/httplib2/certs.py
14 index 59d1ffc..05339cc 100644
15 --- a/httplib2/certs.py
16 +++ b/httplib2/certs.py
17 @@ -19,9 +19,7 @@ except ImportError:
18 pass
19
20
21 -BUILTIN_CA_CERTS = os.path.join(
22 - os.path.dirname(os.path.abspath(__file__)), "cacerts.txt"
23 -)
24 +BUILTIN_CA_CERTS = "/etc/ssl/certs/ca-certificates.crt"
25
26
27 def where():
28 diff --git a/setup.py b/setup.py
29 index 8add592..7b72708 100644
30 --- a/setup.py
31 +++ b/setup.py
32 @@ -83,7 +83,6 @@ A comprehensive HTTP client library, ``httplib2`` supports many features left ou
33 A large and growing set of unit tests.
34 """,
35 packages=["httplib2"],
36 - package_data={"httplib2": ["*.txt"]},
37 install_requires=read_requirements("requirements.txt"),
38 tests_require=read_requirements("requirements-test.txt"),
39 python_requires=">=3.8",
40 diff --git a/tests/test_cacerts_from_env.py b/tests/test_cacerts_from_env.py
41 index f04ba0e..1312542 100644
42 --- a/tests/test_cacerts_from_env.py
43 +++ b/tests/test_cacerts_from_env.py
44 @@ -9,7 +9,7 @@ import tempfile
45 import httplib2
46
47
48 -CA_CERTS_BUILTIN = os.path.join(os.path.dirname(httplib2.__file__), "cacerts.txt")
49 +CA_CERTS_BUILTIN = "/etc/ssl/certs/ca-certificates.crt"
50 CERTIFI_CERTS_FILE = "unittest_certifi_file"
51 CUSTOM_CA_CERTS = "unittest_custom_ca_certs"
52