forked from pool/python-kiwi
OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=7
This commit is contained in:
parent
e604ea11a0
commit
be9ad67e7f
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user