|
|
@ -198,6 +198,9 @@ rpmbuild -ba \
|
|
|
|
eval "$(grep ^RET= ${LOGFILE})"
|
|
|
|
eval "$(grep ^RET= ${LOGFILE})"
|
|
|
|
set +x
|
|
|
|
set +x
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Removes temporary source directory
|
|
|
|
|
|
|
|
rm -rf "${SOURCEDIR}"
|
|
|
|
|
|
|
|
|
|
|
|
if [ "${RET}" -gt 0 ]; then
|
|
|
|
if [ "${RET}" -gt 0 ]; then
|
|
|
|
exit ${RET}
|
|
|
|
exit ${RET}
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -208,7 +211,6 @@ if grep -q "error: Failed build dependencies:" ${LOGFILE}; then
|
|
|
|
exit 2
|
|
|
|
exit 2
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
rm -rf "${SOURCEDIR}"
|
|
|
|
rm -rf "${SOURCEDIR}"
|
|
|
|
|
|
|
|
|
|
|
|
# Removes BUILDDIR if build succeeded
|
|
|
|
# Removes BUILDDIR if build succeeded
|
|
|
|