Drop rpm scriptlets for things that are handled by rpm file triggers
update-desktop-database and gtk-update-icon-cache are both handled by file triggers in desktop-file-utils and hicolor-icon-theme packages these days and there is no need to invoke them manually in individual packages any more.
This commit is contained in:
parent
4f8d37fe68
commit
8bed0f2480
14
firefox.spec
14
firefox.spec
@ -1015,20 +1015,6 @@ if [ $1 -eq 0 ]; then
|
|||||||
rm -rf %{langpackdir}
|
rm -rf %{langpackdir}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post
|
|
||||||
update-desktop-database &> /dev/null || :
|
|
||||||
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
||||||
|
|
||||||
%postun
|
|
||||||
update-desktop-database &> /dev/null || :
|
|
||||||
if [ $1 -eq 0 ] ; then
|
|
||||||
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
||||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%posttrans
|
|
||||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
||||||
|
|
||||||
%if %{with langpacks_subpkg}
|
%if %{with langpacks_subpkg}
|
||||||
%files
|
%files
|
||||||
%else
|
%else
|
||||||
|
Loading…
Reference in New Issue
Block a user