Move %preun before the %post scriptlets
This commit is contained in:
parent
a52b725daa
commit
5f70bce505
18
firefox.spec
18
firefox.spec
@ -296,6 +296,15 @@ sed -i -e "s/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/" $RPM_BUILD_ROOT/%{
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
|
||||
%preun
|
||||
# is it a final removal?
|
||||
if [ $1 -eq 0 ]; then
|
||||
%{__rm} -rf %{mozappdir}/components
|
||||
%{__rm} -rf %{mozappdir}/extensions
|
||||
%{__rm} -rf %{mozappdir}/plugins
|
||||
%{__rm} -rf %{langpackdir}
|
||||
fi
|
||||
|
||||
%post
|
||||
update-desktop-database &> /dev/null || :
|
||||
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
@ -307,15 +316,6 @@ if [ $1 -eq 0 ] ; then
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
fi
|
||||
|
||||
%preun
|
||||
# is it a final removal?
|
||||
if [ $1 -eq 0 ]; then
|
||||
%{__rm} -rf %{mozappdir}/components
|
||||
%{__rm} -rf %{mozappdir}/extensions
|
||||
%{__rm} -rf %{mozappdir}/plugins
|
||||
%{__rm} -rf %{langpackdir}
|
||||
fi
|
||||
|
||||
%posttrans
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user