Re: Re: Suggested ScriptletSnippets (icon cache) changes

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

 



On Wednesday 28 January 2009, Rex Dieter wrote:
> Enrico Scholz wrote:
> > Rex Dieter <rdieter@xxxxxxxxxxxx> 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).
>
> me likie.

Just remember to add something to prevent a non-zero gtk-update-icon-cache 
exit status from causing trouble.

--
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