From 05f41dba00dfabebbb3f6629e7d1009f684844e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 5 Jan 2024 15:12:56 +0100 Subject: [PATCH] python3.11-idle: Move the --keep-foreign flag to %postun where it belongs --- python3.11.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python3.11.spec b/python3.11.spec index c9e8d45..5a92fc6 100644 --- a/python3.11.spec +++ b/python3.11.spec @@ -1299,7 +1299,7 @@ if [ $1 -eq 0 ]; then fi %post idle -alternatives --keep-foreign --add-slave python3 %{_bindir}/python3.11 \ +alternatives --add-slave python3 %{_bindir}/python3.11 \ %{_bindir}/idle3 \ idle3 \ %{_bindir}/idle3.11 @@ -1307,7 +1307,7 @@ alternatives --keep-foreign --add-slave python3 %{_bindir}/python3.11 \ %postun idle # Do this only during uninstall process (not during update) if [ $1 -eq 0 ]; then - alternatives --remove-slave python3 %{_bindir}/python3.11 \ + alternatives --keep-foreign --remove-slave python3 %{_bindir}/python3.11 \ idle3 fi