Ville Skyttä ville.skytta@iki.fi writes:
So the scriptlets would become:
%post if [ $1 -eq 1 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi
%postun touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
Why not
| %post | touch --no-create %{_datadir}/icons/hicolor &>/dev/null | | %postun | touch --no-create %{_datadir}/icons/hicolor &>/dev/null | | %posttrans | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
? All relevant Fedora releases should understand %posttrans and this speeds up things significantly.
Enrico