From 5f70bce5051711890a78ef29420ef209a932ae16 Mon Sep 17 00:00:00 2001 From: Christopher Aillon Date: Fri, 15 Apr 2011 17:10:51 -0700 Subject: Move %preun before the %post scriptlets --- firefox.spec | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'firefox.spec') diff --git a/firefox.spec b/firefox.spec index cc10598..cd0e074 100644 --- a/firefox.spec +++ b/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 || : -- cgit