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