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

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


Rex Dieter <rdieter at math.unl.edu> writes:

> nevermind, recalled that posttrans was previously considered and rejected,
> since posttrans isn't called on erasure (only install/upgrade).

Then use a modified %postun scriptlet like

%postun
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
test $1 -ge 1 || gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null


--> install and update are cheap, but erase is expensive (but correct).


Enrico




More information about the Fedora-packaging mailing list