%pre scripts with a non-zero exit status.

doc drplastic99 at yahoo.com
Tue Dec 2 16:51:50 UTC 2014

I'm being asked to create a %pre scriptlet which if certain configuration conditions are not met will not install the rpm package.  
Is this a good idea?  
My understanding of rpm scriptlets is that they should always (except under extreme conditions) exit with a status of 0.   Needless to say, these rpms with the %pre failures would be installed by rpm, yum and zypper.  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20141202/cee47ff2/attachment.html>

More information about the Rpm-list mailing list