!101 update dummy-certifi.patch
From: @tong_1001 Reviewed-by: @hanxinke Signed-off-by: @hanxinke
This commit is contained in:
commit
befb46bb03
@ -4,14 +4,22 @@ Date: Sun, 26 Apr 2020 21:38:44 +0200
|
|||||||
Subject: [PATCH] Dummy certifi patch
|
Subject: [PATCH] Dummy certifi patch
|
||||||
|
|
||||||
---
|
---
|
||||||
src/pip/_vendor/certifi/core.py | 4 +---
|
src/pip/_vendor/certifi/core.py | 5 ++---
|
||||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
1 file changed, 2 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
diff --git a/src/pip/_vendor/certifi/core.py b/src/pip/_vendor/certifi/core.py
|
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
|
--- a/src/pip/_vendor/certifi/core.py
|
||||||
+++ b/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
|
# 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.
|
# of assuming we're on the filesystem and munge the path directly.
|
||||||
def where():
|
def where():
|
||||||
@ -23,5 +31,5 @@ index 8987449..128fa92 100644
|
|||||||
|
|
||||||
def contents():
|
def contents():
|
||||||
--
|
--
|
||||||
2.23.0
|
1.8.3.1
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,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})
|
%global bashcompdir %(b=$(pkg-config --variable=completionsdir bash-completion 2>/dev/null); echo ${b:-%{_sysconfdir}/bash_completion.d})
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 20.3.3
|
Version: 20.3.3
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: A tool for installing and managing Python packages
|
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)
|
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
|
URL: http://www.pip-installer.org
|
||||||
@ -115,6 +115,9 @@ install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir}
|
|||||||
%{python_wheeldir}/%{python_wheelname}
|
%{python_wheeldir}/%{python_wheelname}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 19 2021 shixuantong<shixuantong@huawei.com> - 20.3.3-3
|
||||||
|
- update dummy-certifi.patch
|
||||||
|
|
||||||
* Sat Jul 24 2021 shixuantong<shixuantong@huawei.com> - 20.3.3-2
|
* Sat Jul 24 2021 shixuantong<shixuantong@huawei.com> - 20.3.3-2
|
||||||
- fix CVE-2021-3572
|
- fix CVE-2021-3572
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user