Re: Suggested ScriptletSnippets (icon cache) changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bill Nottingham <notting@xxxxxxxxxx> 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

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux