rpm installation tests / script tests

Rex Dieter rdieter at math.unl.edu
Wed Jul 11 19:11:37 UTC 2007


Ville Skyttä wrote:

> On Wednesday 11 July 2007, Wart wrote:

> What's the benefit of that "touch" over using the -f/--force argument to
> gtk-update-icon-cache?  Couldn't the scriptlet be reduced to:
> 
> if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
>     %{_bindir}/gtk-update-icon-cache -qf %{_datadir}/icons/hicolor || :
> fi

if gtk-update-icon-cache is not present, the toplevel timestamp isn't
updated, as required by the icon-spec.

So, you have either
touch ...
conditional gtk-update-icon-cache

or

Requires(post,postun): gtk2
unconditional gtk-update-icon-cache --force

pick your poison.

-- Rex




More information about the Fedora-maintainers mailing list