Ensure that make stops when commands fail in common-elements package
The common-elements
RPM was essentially empty in v5.0.0.
Looking at the build log, the following commands failed (since version number was updated, but tarball filename unchanged):
tar (child): common-elements-5.0.0-build.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
cp: cannot stat 'common-elements/*': No such file or directory
However, the failure of those commands was not spotted by make, since they were nested inside a multi-line if statement, whose last command - date > .build_done
- always succeeds.
TODO:
- Ensure that
make
stops when these commands fail - Fix the filename for the tarball.