CLOUDSTACK-7522 : Update package.sh to exit rpm with return 1, if there are failure in build

This commit is contained in:
rayeesn 2014-09-18 08:31:16 -07:00 committed by Frank.Zhang
parent 8a13f44b44
commit d315a5e2c9

View File

@ -76,8 +76,14 @@ function packaging() {
(cd $RPMDIR; rpmbuild --define "_topdir $RPMDIR" "${DEFVER}" "${DEFREL}" ${DEFPRE+"${DEFPRE}"} ${DEFOSSNOSS+"$DEFOSSNOSS"} "${DOS}" -bb SPECS/cloud.spec)
echo "Done"
if [ $? -ne 0 ]; then
echo "RPM Build Failed "
exit 1
else
echo "RPM Build Done"
fi
exit
}
if [ $# -lt 1 ] ; then