From 03ae7383670da3201dea72146cad86dcacda786a Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 14 May 2020 17:17:05 +0000 Subject: [PATCH] Complain if building sources fail? --- scripts/build_deb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build_deb b/scripts/build_deb index 54ad54b..4273e8f 100755 --- a/scripts/build_deb +++ b/scripts/build_deb @@ -75,16 +75,16 @@ function build_sources() boxed "Building source package of ${PACKAGE} ${VERSION} ..." pbuilder execute --bindmounts ${ROOT_DIR} --basetgz ${IMG} -- ${BUILD_SOURCES} $PKG_DIR \ - || critical "An error occured while building source package" + || { sendxmpppy "An error occured while building source package for $PACKAGE"; critical "An error occured while building source package"; } - [[ -f ${CHANGES_FILE} ]] || critical "An error occured while building source package (no change file available)" + [[ -f ${CHANGES_FILE} ]] || { sendxmpppy "An error occured while building source package for $PACKAGE"; critical "An error occured while building source package (no change file available)"; } } function add_to_reprepro() { boxed "Adding ${PACKAGE}_${VERSION} to ${DISTRIB}/${BRANCH}..." - $INCLUDE_CHANGES $DISTRIB $BRANCH $CHANGES_FILE || critical "An error occured while including source package" + $INCLUDE_CHANGES $DISTRIB $BRANCH $CHANGES_FILE || { sendxmpppy "An error occured while including source package $PACKAGE"; critical "An error occured while including source package"; } } [[ "$1" =~ ^-h|--help$ ]] && (usage; exit 0) || main