use of gtk-update-icon-cache?

Michael Schwendt bugs.michael at gmx.net
Fri Apr 29 13:11:29 UTC 2005


On Fri, 29 Apr 2005 13:16:44 +0200, Enrico Scholz wrote:

> fkooman at tuxed.net ("F. Kooman") writes:
> 
> > %post
> > # update icon themes
> > touch %{_datadir}/icons/hicolor
> > if [ -x /usr/bin/gtk-update-icon-cache ]; then
> >   /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
> > fi
> 
> Stop, before applying such scriptlets: There must be appended an '|| :'
> after the 'touch' and the 'gtk-update-icon-cache' command. When %_datadir
> is in %_netsharedpath and mounted read-only therefore, the command and
> the entire scriptlet will fail.

Package installation would fail miserably in that case, because the
package could not install any files into %_datadir beforehand.

For exported file-systems, you would only install packages on the file
server, where the install locations are not read-only. Or what does your
scenario look like?




More information about the fedora-extras-list mailing list