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

Re: rpm installation tests / script tests



On Wednesday 11 July 2007, Wart wrote:
> Rex Dieter wrote:
> > Florian La Roche wrote:
> >> anything holding back an update of the default snippets we
> >> propose for Fedora until a more permanent solution in
> >> rpm/tools is available?
> >
> > The Snippets wiki has been updated, after getting feedback on the
> > fedora-desktop list.
>
> What about adding 'Requires(post): coreutils' to ensure that the 'touch'
> executable is present[1]?  Or adding "|| :" at the end of the touch
> command to avoid errors from being printed if it is not?

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


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