%pre scripts with a non-zero exit status.

Eran Ben Natan eranb at celltick.com
Tue Dec 2 16:55:41 UTC 2014


That is exactly the purpose of the %pre – to verify that all prerequisites are met, so, yes, this is a good idea.

From: Rpm-list [mailto:rpm-list-bounces at lists.rpm.org] On Behalf Of doc
Sent: Tuesday, December 02, 2014 6:52 PM
To: rpm-list at lists.rpm.org
Subject: %pre scripts with a non-zero exit status.

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/ceac7bca/attachment.html>


More information about the Rpm-list mailing list