Blame SOURCES/dummy-certifi.patch
|
|
d00c25 |
From cf96ff346639d1b9f5efa3fd0976694e04df3f5f Mon Sep 17 00:00:00 2001
|
|
|
d00c25 |
From: Tomas Hrnciar <thrnciar@redhat.com>
|
|
|
d00c25 |
Date: Sun, 26 Apr 2020 21:38:44 +0200
|
|
|
d00c25 |
Subject: [PATCH] Dummy certifi patch
|
|
|
d00c25 |
|
|
|
d00c25 |
---
|
|
|
d00c25 |
src/pip/_vendor/certifi/core.py | 5 ++---
|
|
|
d00c25 |
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
|
d00c25 |
|
|
|
d00c25 |
diff --git a/src/pip/_vendor/certifi/core.py b/src/pip/_vendor/certifi/core.py
|
|
|
d00c25 |
index 8987449..d174ced 100644
|
|
|
d00c25 |
--- a/src/pip/_vendor/certifi/core.py
|
|
|
d00c25 |
+++ b/src/pip/_vendor/certifi/core.py
|
|
|
d00c25 |
@@ -9,6 +9,7 @@ This module returns the installation location of cacert.pem or its contents.
|
|
|
d00c25 |
import os
|
|
|
d00c25 |
|
|
|
d00c25 |
try:
|
|
|
d00c25 |
+ raise ImportError # force fallback
|
|
|
d00c25 |
from importlib.resources import path as get_path, read_text
|
|
|
d00c25 |
|
|
|
d00c25 |
_CACERT_CTX = None
|
|
|
d00c25 |
@@ -51,9 +52,7 @@ except ImportError:
|
|
|
d00c25 |
# If we don't have importlib.resources, then we will just do the old logic
|
|
|
d00c25 |
# of assuming we're on the filesystem and munge the path directly.
|
|
|
d00c25 |
def where():
|
|
|
d00c25 |
- f = os.path.dirname(__file__)
|
|
|
d00c25 |
-
|
|
|
d00c25 |
- return os.path.join(f, "cacert.pem")
|
|
|
d00c25 |
+ return '/etc/pki/tls/certs/ca-bundle.crt'
|
|
|
d00c25 |
|
|
|
d00c25 |
|
|
|
d00c25 |
def contents():
|
|
|
d00c25 |
--
|
|
|
d00c25 |
2.25.4
|
|
|
d00c25 |
|