only run %pre on upgrades
This commit is contained in:
parent
a14f58dfd1
commit
a9071e838a
2
qt.spec
2
qt.spec
|
@ -933,6 +933,7 @@ rm -rf %{buildroot}
|
|||
|
||||
%if 0%{?qtchooser}
|
||||
%pre
|
||||
if [ $1 -gt 1 ] ; then
|
||||
# remove short-lived qt4.conf alternatives
|
||||
%{_sbindir}/update-alternatives \
|
||||
--remove qtchooser-qt4 \
|
||||
|
@ -941,6 +942,7 @@ rm -rf %{buildroot}
|
|||
%{_sbindir}/update-alternatives \
|
||||
--remove qtchooser-default \
|
||||
%{_sysconfdir}/xdg/qtchooser/qt4.conf >& /dev/null ||:
|
||||
fi
|
||||
%endif
|
||||
|
||||
%post
|
||||
|
|
Loading…
Reference in New Issue