Red Hat Bugzilla – Bug 458260
rpmbuild does not set exit code on error
Last modified: 2013-07-02 19:31:14 EDT
Though an error was reported, rpmbuild exits with exit code 0.
Version-Release number of selected component (if applicable):
How reproducible: deterministic
Steps to Reproduce:
I made a typo in my foo.spec:
Then I ran "rpmbuild -bp foo.spec".
There was an error that no Patch5 has been declared, but then %patch5 expanded to nothing and processing happilly continued, until the prep script finished with "exit 0", which became the exit code of the whole rpmbuild command.
Carelessness in the extreme form! "Don't worry, be happy!"
*** Bug 458261 has been marked as a duplicate of this bug. ***
Fixed upstream. This bug and #458261 annoyed me as well :) Fixed RPM should occur in rawhide with the new git snapshot.