python3.11-idle: Move the --keep-foreign flag to %postun where it belongs
This commit is contained in:
parent
1e4237cccc
commit
05f41dba00
@ -1299,7 +1299,7 @@ if [ $1 -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%post idle
|
%post idle
|
||||||
alternatives --keep-foreign --add-slave python3 %{_bindir}/python3.11 \
|
alternatives --add-slave python3 %{_bindir}/python3.11 \
|
||||||
%{_bindir}/idle3 \
|
%{_bindir}/idle3 \
|
||||||
idle3 \
|
idle3 \
|
||||||
%{_bindir}/idle3.11
|
%{_bindir}/idle3.11
|
||||||
@ -1307,7 +1307,7 @@ alternatives --keep-foreign --add-slave python3 %{_bindir}/python3.11 \
|
|||||||
%postun idle
|
%postun idle
|
||||||
# Do this only during uninstall process (not during update)
|
# Do this only during uninstall process (not during update)
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
alternatives --remove-slave python3 %{_bindir}/python3.11 \
|
alternatives --keep-foreign --remove-slave python3 %{_bindir}/python3.11 \
|
||||||
idle3
|
idle3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user