[Fedora-packaging] Re: Suggested ScriptletSnippets (icon cache) changes

Enrico Scholz enrico.scholz at informatik.tu-chemnitz.de
Wed Jan 28 08:09:25 UTC 2009


Ville Skyttä <ville.skytta at 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




More information about the Fedora-packaging mailing list