diff options
-rw-r--r-- | firefox.spec | 18 |
1 files changed, 9 insertions, 9 deletions
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 || : |