diff --git a/dummy-certifi.patch b/dummy-certifi.patch index f45f5b1aacbd95023edc82727df18e0cf72e05a0..f873988b839b2887aaa02df4ce7eb9898ac4334a 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 0ada0b9e72d64ca6913de35e76982c3c839f54d7..fe3daf7232cd53e4574ed095817f93996eba77af 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