SPECS: openldap.spec - %preun & %postun should never fail (said
Andrzej Krzysztofowicz
ankry at green.mif.pg.gda.pl
Sun Nov 28 16:38:56 CET 2004
Jakub Bogusz wrote:
>
> On Sun, Nov 28, 2004 at 05:51:31AM +0100, Andrzej Krzysztofowicz wrote:
> > twittner wrote:
> > >
> > > Author: twittner Date: Sat Nov 27 17:32:36 2004 GMT
> > > Module: SPECS Tag: HEAD
> > > ---- Log message:
> > > - %preun & %postun should never fail (said saq ?) - added || :
> >
> > %post and %preun should never fail.
>
> I haven't tested it, but doesn't %preun fault prevent
> upgrade/uninstallation? If so, it could be useful sometimes.
I assume that need of uninstalable packages is rather rare.
Maybe postgresql update would be the only case I know.
> > In postun it is no problem.
> > So why do you want to hide errors here ?
> >
> > > +%postun libs
> > > +/sbin/ldconfig || :
> >
> > And this way you cause dependency is not autogwnerated ?
>
> It is, but it's /bin/sh not /sbin/ldconfig dependency then ;)
exactly
--
=======================================================================
Andrzej M. Krzysztofowicz ankry at mif.pg.gda.pl
phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math., Gdansk University of Technology
More information about the pld-devel-en
mailing list