2022-06-29 00:26:42 +00:00
|
|
|
From cacd6d2fa9a27b29415a4ce25d76406fe69fc398 Mon Sep 17 00:00:00 2001
|
2021-05-11 14:58:03 +00:00
|
|
|
From: Karolina Surma <ksurma@redhat.com>
|
|
|
|
Date: Mon, 10 May 2021 16:38:50 +0200
|
2020-04-26 21:10:08 +00:00
|
|
|
Subject: [PATCH] Dummy certifi patch
|
|
|
|
|
2021-05-11 14:58:03 +00:00
|
|
|
Co-Authored-By: Tomas Hrnciar <thrnciar@redhat.com>
|
2020-04-26 21:10:08 +00:00
|
|
|
---
|
2020-08-05 16:46:46 +00:00
|
|
|
src/pip/_vendor/certifi/core.py | 5 ++---
|
|
|
|
1 file changed, 2 insertions(+), 3 deletions(-)
|
2020-04-26 21:10:08 +00:00
|
|
|
|
2018-12-03 15:46:56 +00:00
|
|
|
diff --git a/src/pip/_vendor/certifi/core.py b/src/pip/_vendor/certifi/core.py
|
2022-06-29 00:26:42 +00:00
|
|
|
index f34045b..a2ada08 100644
|
2018-12-03 15:46:56 +00:00
|
|
|
--- a/src/pip/_vendor/certifi/core.py
|
|
|
|
+++ b/src/pip/_vendor/certifi/core.py
|
2021-05-11 14:58:03 +00:00
|
|
|
@@ -14,6 +14,7 @@ class _PipPatchedCertificate(Exception):
|
2022-06-29 00:26:42 +00:00
|
|
|
|
|
|
|
|
2020-08-05 16:46:46 +00:00
|
|
|
try:
|
|
|
|
+ raise ImportError # force fallback
|
2021-05-11 14:58:03 +00:00
|
|
|
# Return a certificate file on disk for a standalone pip zipapp running in
|
|
|
|
# an isolated build environment to use. Passing --cert to the standalone
|
|
|
|
# pip does not work since requests calls where() unconditionally on import.
|
2022-06-29 00:26:42 +00:00
|
|
|
@@ -75,9 +76,7 @@ except ImportError:
|
2020-08-05 16:46:46 +00: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.
|
2022-06-29 00:26:42 +00:00
|
|
|
def where() -> str:
|
2020-08-05 16:46:46 +00:00
|
|
|
- f = os.path.dirname(__file__)
|
2018-12-03 15:46:56 +00:00
|
|
|
-
|
2020-08-05 16:46:46 +00:00
|
|
|
- return os.path.join(f, "cacert.pem")
|
|
|
|
+ return '/etc/pki/tls/certs/ca-bundle.crt'
|
2022-06-29 00:26:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
def contents() -> str:
|
|
|
|
--
|
|
|
|
2.35.3
|
2020-04-26 21:10:08 +00:00
|
|
|
|