Blame SOURCES/dummy-certifi.patch

f96a86
From 2c58d7301dd5a47570f782fe2fce7fbb1918f60c Mon Sep 17 00:00:00 2001
f96a86
From: Karolina Surma <ksurma@redhat.com>
f96a86
Date: Mon, 10 May 2021 16:38:50 +0200
a80022
Subject: [PATCH] Dummy certifi patch
a80022
f96a86
Co-Authored-By: Tomas Hrnciar <thrnciar@redhat.com>
a80022
---
a80022
 src/pip/_vendor/certifi/core.py | 5 ++---
a80022
 1 file changed, 2 insertions(+), 3 deletions(-)
a80022
a80022
diff --git a/src/pip/_vendor/certifi/core.py b/src/pip/_vendor/certifi/core.py
f96a86
index b8140cf..f1a0b01 100644
a80022
--- a/src/pip/_vendor/certifi/core.py
a80022
+++ b/src/pip/_vendor/certifi/core.py
f96a86
@@ -14,6 +14,7 @@ class _PipPatchedCertificate(Exception):
f96a86
f96a86
a80022
 try:
a80022
+    raise ImportError  # force fallback
f96a86
     # Return a certificate file on disk for a standalone pip zipapp running in
f96a86
     # an isolated build environment to use. Passing --cert to the standalone
f96a86
     # pip does not work since requests calls where() unconditionally on import.
f96a86
@@ -67,9 +68,7 @@ except ImportError:
a80022
     # If we don't have importlib.resources, then we will just do the old logic
a80022
     # of assuming we're on the filesystem and munge the path directly.
a80022
     def where():
a80022
-        f = os.path.dirname(__file__)
a80022
-
a80022
-        return os.path.join(f, "cacert.pem")
a80022
+        return '/etc/pki/tls/certs/ca-bundle.crt'
f96a86
f96a86
a80022
 def contents():
f96a86
--
f96a86
2.30.2
a80022