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

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


Bill Nottingham <notting at redhat.com> writes:

>> | %postun
>> | touch --no-create %{_datadir}/icons/hicolor &>/dev/null
>> | 
>> | %posttrans
>> | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
>
> As posttrans isn't collated into a single run, it just moves the total
> of calls from point A to point B,

no; gtk-update-icon-cache is cheap when icons/hicolor is up-to-date.
Hence, only the first %posttrans will update the icon cache.  Subsequent
ones will be noops effectively.

With old method, there is a 'touch icons/hicolor' which invalidates
cache and makes every operation expensive.



Enrico




More information about the Fedora-packaging mailing list