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