SPECS: openldap.spec - %preun & %postun should never fail (said

Jakub Bogusz qboosh at pld-linux.org
Sun Nov 28 14:14:35 CET 2004


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.

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


-- 
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/




More information about the pld-devel-en mailing list