python3.11-idle: Move the --keep-foreign flag to %postun where it belongs

This commit is contained in:
Miro Hrončok 2024-01-05 15:12:56 +01:00
parent 1e4237cccc
commit 05f41dba00

View File

@ -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