For consistency with other Pythons, don't --keep-foreign when adding alternatives

Previously I was told to do this.
Now we agreed we don't want to do this, we want to remain consistent.
This commit is contained in:
Miro Hrončok 2024-01-10 15:05:35 +01:00
parent 4f6d836882
commit 2a85eb23ea

View File

@ -141,7 +141,7 @@ install -p dist/%{python_wheel_name} -t %{buildroot}%{python_wheel_dir}
%endif
%post -n python%{python3_pkgversion}-%{pypi_name}
alternatives --keep-foreign --add-slave python3 %{_bindir}/python%{python3_version} \
alternatives --add-slave python3 %{_bindir}/python%{python3_version} \
%{_bindir}/%{pypi_name}-3 \
%{pypi_name}-3 \
%{_bindir}/%{pypi_name}-%{python3_version}