From d2a13bc0121473f725010c379d9345dfc16a2686 Mon Sep 17 00:00:00 2001 From: shixuantong Date: Thu, 19 Aug 2021 17:33:42 +0800 Subject: [PATCH] update dummy-certifi.patch --- dummy-certifi.patch | 18 +++++++++++++----- python-pip.spec | 5 ++++- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/dummy-certifi.patch b/dummy-certifi.patch index f45f5b1..f873988 100644 --- a/dummy-certifi.patch +++ b/dummy-certifi.patch @@ -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 diff --git a/python-pip.spec b/python-pip.spec index 0ada0b9..fe3daf7 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -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 - 20.2.2-3 +- update dummy-certifi.patch + * Sat Jul 24 2021 shixuantong - 20.2.2-2 - fix CVE-2021-3572 -- Gitee