From 16c54f4fd8b1e676986281f215aef20a113bc2c4204595d2a1135e319a90a1c2 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Wed, 29 Mar 2017 13:52:20 +0000 Subject: [PATCH] - uninstall alternatives in %postun OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=47 --- 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 25f44cc..cc0f6bb 100644 --- a/python-pip.changes +++ b/python-pip.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 29 13:52:06 UTC 2017 - jmatejek@suse.com + +- uninstall alternatives in %postun + ------------------------------------------------------------------- Thu Feb 23 15:31:57 UTC 2017 - jmatejek@suse.com diff --git a/python-pip.spec b/python-pip.spec index 5c4a09e..b370b35 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -94,7 +94,7 @@ PRIO=$(echo %{python_version} | tr -d .) %install_alternative pip %{_bindir}/pip%{python_version} $PRIO %endif -%preun +%postun %ifpypy3 %uninstall_alternative pip %{_bindir}/pip-%{pypy3_bin_suffix} %else