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