update dummy-certifi.patch

(cherry picked from commit d2a13bc0121473f725010c379d9345dfc16a2686)
This commit is contained in:
shixuantong 2021-08-19 17:33:42 +08:00 committed by openeuler-sync-bot
parent d6cc5d0244
commit 786ccec474
2 changed files with 17 additions and 6 deletions

View File

@ -4,14 +4,22 @@ Date: Sun, 26 Apr 2020 21:38:44 +0200
Subject: [PATCH] Dummy certifi patch
---
src/pip/_vendor/certifi/core.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
src/pip/_vendor/certifi/core.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/pip/_vendor/certifi/core.py b/src/pip/_vendor/certifi/core.py
index 8987449..128fa92 100644
index 8987449..568d078 100644
--- a/src/pip/_vendor/certifi/core.py
+++ b/src/pip/_vendor/certifi/core.py
@@ -51,9 +51,7 @@ except ImportError:
@@ -9,6 +9,7 @@ This module returns the installation location of cacert.pem or its contents.
import os
try:
+ raise ImportError # force fallback
from importlib.resources import path as get_path, read_text
_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():
@ -23,5 +31,5 @@ index 8987449..128fa92 100644
def contents():
--
2.23.0
1.8.3.1

View File

@ -7,7 +7,7 @@ pip is the package installer for Python. You can use pip to install packages fro
%global bashcompdir %(b=$(pkg-config --variable=completionsdir bash-completion 2>/dev/null); echo ${b:-%{_sysconfdir}/bash_completion.d})
Name: python-%{srcname}
Version: 20.2.2
Release: 2
Release: 3
Summary: A tool for installing and managing Python packages
License: MIT and Python and ASL 2.0 and BSD and ISC and LGPLv2 and MPLv2.0 and (ASL 2.0 or BSD)
URL: http://www.pip-installer.org
@ -151,6 +151,9 @@ install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir}
%{python_wheeldir}/%{python_wheelname}
%changelog
* Thu Aug 19 2021 shixuantong<shixuantong@huawei.com> - 20.2.2-3
- update dummy-certifi.patch
* Sat Jul 24 2021 shixuantong<shixuantong@huawei.com> - 20.2.2-2
- fix CVE-2021-3572