From 2f884dd8709b518b3a1282d2d92a4aec2e1191427bfc246411fa802eb6ce33d7 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 14 Dec 2020 00:24:25 +0000 Subject: [PATCH] Accepting request 855624 from home:bnavigator:branches:devel:languages:python - Fix the condition to really not break Python 2.7 in Leap OBS-URL: https://build.opensuse.org/request/show/855624 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=89 --- python-pip.changes | 5 +++++ python-pip.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-pip.changes b/python-pip.changes index edc476c..70d9de6 100644 --- a/python-pip.changes +++ b/python-pip.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Dec 14 00:14:23 UTC 2020 - Benjamin Greiner + +- Fix the condition to really not break Python 2.7 in Leap + ------------------------------------------------------------------- Sun Dec 13 21:23:26 UTC 2020 - Matej Cepl diff --git a/python-pip.spec b/python-pip.spec index 86385d2..7fad626 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -70,7 +70,7 @@ BuildRequires: %{python_module scripttest} BuildRequires: %{python_module setuptools-wheel} BuildRequires: %{python_module virtualenv >= 1.10} BuildRequires: %{python_module wheel} -%if "%{python_flavor}" == "python2" +%if 0%{?suse_version} <= 1500 BuildRequires: %{python_module mock} %endif BuildRequires: ca-certificates