Jerrold.Heyman at emc.com
Thu Feb 18 19:36:24 UTC 2016
A quick scan of the archives leaves me confused about %preun sciptlets returning error (non-zero).
There is a thread that says using %pre to fail an install/uninstall is a bad idea.
I have been requested fail the removal of an RPM if the binary that was installed is currently an active process.
I've written a %preun scriptlet that returns non-zero if the binary is actively running.
On CentOS 6.7 (rpm version 4.8.0) I get the expected behavior. When the scriptlet returns non-zero, the removal is terminated and no change to the rpmdb.
On Mageia 3 (rpm version 188.8.131.52), the non-zero return code appears to be ignored and the rpm is removed (files and rpmdb updated).
Was there a change somewhere between 4.8 -> 184.108.40.206 that permanently altered the behavior or is it just a bug in 220.127.116.11?
Jerry Heyman |
Principal Software Engineer | Software is the difference
EMC Data Domain | between hardware and reality
Jerrold.Heyman at emc.com / 919.597.7812 |
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rpm-list