RE: %pre scripts with a non-zero exit status.

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


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@xxxxxxxxxxxxx] On Behalf Of doc
Sent: Tuesday, December 02, 2014 6:52 PM
To: rpm-list@xxxxxxxxxxxxx
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.  




Rpm-list mailing list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux