Blame SOURCES/dummy-certifi.patch
|
|
a80022 |
From cf96ff346639d1b9f5efa3fd0976694e04df3f5f Mon Sep 17 00:00:00 2001
|
|
|
a80022 |
From: Tomas Hrnciar <thrnciar@redhat.com>
|
|
|
a80022 |
Date: Sun, 26 Apr 2020 21:38:44 +0200
|
|
|
a80022 |
Subject: [PATCH] Dummy certifi patch
|
|
|
a80022 |
|
|
|
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
|
|
|
a80022 |
index 8987449..d174ced 100644
|
|
|
a80022 |
--- a/src/pip/_vendor/certifi/core.py
|
|
|
a80022 |
+++ b/src/pip/_vendor/certifi/core.py
|
|
|
a80022 |
@@ -9,6 +9,7 @@ This module returns the installation location of cacert.pem or its contents.
|
|
|
a80022 |
import os
|
|
|
a80022 |
|
|
|
a80022 |
try:
|
|
|
a80022 |
+ raise ImportError # force fallback
|
|
|
a80022 |
from importlib.resources import path as get_path, read_text
|
|
|
a80022 |
|
|
|
a80022 |
_CACERT_CTX = None
|
|
|
a80022 |
@@ -51,9 +52,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'
|
|
|
a80022 |
|
|
|
a80022 |
|
|
|
a80022 |
def contents():
|
|
|
a80022 |
--
|
|
|
a80022 |
2.25.4
|
|
|
a80022 |
|