diff options
| author | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-08-01 18:25:46 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-08-01 18:25:46 +0000 |
| commit | 11dc6c397065a084657c8fdc4dc27eb8a048825a (patch) | |
| tree | d79617e7615da0d940480b77c3356dca98ee8bbf /dev-python/certifi/files | |
| parent | 3536046c1c80d9bd29c9e13d686a718a03ccc28c (diff) | |
| download | srcux-11dc6c397065a084657c8fdc4dc27eb8a048825a.tar.gz srcux-11dc6c397065a084657c8fdc4dc27eb8a048825a.tar.xz srcux-11dc6c397065a084657c8fdc4dc27eb8a048825a.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/certifi/files')
| -rw-r--r-- | dev-python/certifi/files/certifi-2020.6.20-use-system-cacerts.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/dev-python/certifi/files/certifi-2020.6.20-use-system-cacerts.patch b/dev-python/certifi/files/certifi-2020.6.20-use-system-cacerts.patch new file mode 100644 index 000000000000..750954fa869c --- /dev/null +++ b/dev-python/certifi/files/certifi-2020.6.20-use-system-cacerts.patch @@ -0,0 +1,17 @@ +diff -urN certifi-2020.6.20.orig/certifi/core.py certifi-2020.6.20/certifi/core.py +--- certifi-2020.6.20.orig/certifi/core.py 2020-08-01 17:50:13.139849550 +0200 ++++ certifi-2020.6.20/certifi/core.py 2020-08-01 17:52:51.614857443 +0200 +@@ -51,10 +51,9 @@ + # If we don't have importlib.resources, then we will just do the old logic + # of assuming we're on the filesystem and munge the path directly. + def where(): +- f = os.path.dirname(__file__) +- +- return os.path.join(f, "cacert.pem") ++ return "@GENTOO_PORTAGE_EPREFIX@/etc/ssl/certs/ca-certificates.crt" + + + def contents(): +- return read_text("certifi", "cacert.pem", encoding="ascii") ++ with open(where(), "r", encoding="ascii") as f: ++ return f.read() |
