← Back to team overview

registry team mailing list archive

[Bug 675954] [NEW] rpm exits 0 on scriptles failure

 

Public bug reported:

https://bugzilla.redhat.com/show_bug.cgi?id=569930


Paolo Penzo      2010-03-02 12:46:55 EST

As far I've seen, see bugs 533831 and 465409, starting with version 4.6 rpm
exits 0 even if the scriptlets (all but %pre and %preun) exit with error.
IMHO this breaks legacy rpm behaviour (i.e. pre version 4.6) and leads to
misunderstandings since a simple test on the rpm exit code is not reliable
anymore. In other words the rpm exit status tells that the software itself has
been replaced (updated) by a newer version but you know nothing about all the
others steps involed with a change management process (rebuilding of library
cache, configuration migration, service restart an so on).

Is there a way tho revert to the old behaviour or to have them
toghether?

How reproducible:
Always, just place exit 1 in you rpm %post scriptlet.

** Affects: rpm
     Importance: Undecided
         Status: New

** Affects: fedora
     Importance: Unknown
         Status: Unknown


** Tags: scriptlet

** Bug watch added: Red Hat Bugzilla #569930
   https://bugzilla.redhat.com/show_bug.cgi?id=569930

** Also affects: fedora via
   https://bugzilla.redhat.com/show_bug.cgi?id=569930
   Importance: Unknown
       Status: Unknown

-- 
rpm exits 0 on scriptles failure
https://bugs.launchpad.net/bugs/675954
You received this bug notification because you are a member of Registry
Administrators, which is the registrant for Fedora.



Follow ups

References