Re: rpm installation tests / script tests

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

 



On Wed, Jul 11, 2007 at 07:27:03PM +0200, Nicolas Mailhot wrote:
> Le mercredi 11 juillet 2007 à 12:01 -0500, Rex Dieter a écrit :
> > Nicolas Mailhot wrote:
> > 
> > > Le mercredi 11 juillet 2007 à 12:44 -0400, Todd Zullinger a écrit :
> > > 
> > >> So the scriptlet should now look like this (correcting any wrapping
> > >> peoples mail clients do)?
> > >> 
> > >> if [ -x %{_bindir}/gtk-update-icon-cache ]; then
> > >>     %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||
> > >>     :
> > >> fi
> > > 
> > > 
> > > What's the point of || : ?
> > 
> > scriptlets failing -> aborted rpm transaction -> harmed kittens.
> 
> 
> But aren't kittens already protected by the if … fi ?
> 

$ if /bin/true; then /bin/false; fi || echo no, they are not
no, they are not

Please stop animal testing.
-- 
Axel.Thimm at ATrpms.net

Attachment: pgplsayDyuaGL.pgp
Description: PGP signature

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