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