SHA256
1
0
forked from pool/python-kiwi
Marcus Schaefer 2017-03-13 08:20:01 +00:00 committed by Git OBS Bridge
parent e604ea11a0
commit be9ad67e7f

View File

@ -300,7 +300,7 @@ done
%fdupes %{buildroot}/%{python3_sitelib}/kiwi/boot
%fdupes %{buildroot}/%{python2_sitelib}/kiwi/boot
%post
%post -n python2-kiwi
%{_sbindir}/update-alternatives \
--install %_bindir/kiwi kiwi %_bindir/kiwi-ng-%{py_ver} 10
%{_sbindir}/update-alternatives \
@ -308,7 +308,23 @@ done
%{_sbindir}/update-alternatives \
--install %_bindir/kiwicompat kiwicompat %_bindir/kiwicompat-%{py_ver} 10
%preun
%post -n python3-kiwi
%{_sbindir}/update-alternatives \
--install %_bindir/kiwi kiwi %_bindir/kiwi-ng-%{py_ver} 10
%{_sbindir}/update-alternatives \
--install %_bindir/kiwi-ng kiwi-ng %_bindir/kiwi-ng-%{py_ver} 10
%{_sbindir}/update-alternatives \
--install %_bindir/kiwicompat kiwicompat %_bindir/kiwicompat-%{py_ver} 10
%preun -n python2-kiwi
%{_sbindir}/update-alternatives \
--remove kiwi %_bindir/kiwi
%{_sbindir}/update-alternatives \
--remove kiwi %_bindir/kiwi-ng
%{_sbindir}/update-alternatives \
--remove kiwicompat %_bindir/kiwicompat
%preun -n python3-kiwi
%{_sbindir}/update-alternatives \
--remove kiwi %_bindir/kiwi
%{_sbindir}/update-alternatives \