python-pip/dummy-certifi.patch

36 lines
1.1 KiB
Diff
Raw Normal View History

2020-07-28 18:55:50 +08:00
From 09bf87d33141a5c06a1d410839d162262baa16c4 Mon Sep 17 00:00:00 2001
From: Tomas Hrnciar <thrnciar@redhat.com>
Date: Sun, 26 Apr 2020 21:38:44 +0200
Subject: [PATCH] Dummy certifi patch
---
2021-08-19 17:15:19 +08:00
src/pip/_vendor/certifi/core.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
2020-07-28 18:55:50 +08:00
2019-09-30 11:15:19 -04:00
diff --git a/src/pip/_vendor/certifi/core.py b/src/pip/_vendor/certifi/core.py
2021-08-19 17:15:19 +08:00
index 8987449..568d078 100644
2019-09-30 11:15:19 -04:00
--- a/src/pip/_vendor/certifi/core.py
+++ b/src/pip/_vendor/certifi/core.py
2021-12-20 14:35:11 +08:00
@@ -23,6 +23,7 @@ try:
return _PIP_STANDALONE_CERT
raise _PipPatchedCertificate()
2021-08-19 17:15:19 +08:00
+ raise ImportError # force fallback
from importlib.resources import path as get_path, read_text
_CACERT_CTX = None
2021-12-20 14:35:11 +08:00
@@ -67,9 +68,7 @@ except ImportError:
2020-08-25 11:47:20 +08:00
# 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 '/etc/pki/tls/certs/ca-bundle.crt'
2019-09-30 11:15:19 -04:00
2020-07-28 18:55:50 +08:00
def contents():
2020-08-25 11:47:20 +08:00
--
2021-08-19 17:15:19 +08:00
1.8.3.1
2020-07-28 18:55:50 +08:00