From 8da840c8198b5380b01bd3686fd04c2dfa2a5dff Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 3 Oct 2015 13:18:32 +0200 Subject: reproducible: remove notification about no artifacts on ftbfs --- bin/reproducible_build.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'bin/reproducible_build.sh') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 722e9d38..35fb0e23 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -65,7 +65,7 @@ save_artifacts() { echo | tee -a ${RBUILDLOG} # irc message if [ ! -z "$NOTIFY" ] ; then - local MESSAGE="Artifacts for ${SRCPACKAGE} (${SUITE}/${ARCH}) published: $URL" + local MESSAGE="Artifacts for ${SRCPACKAGE} ($STATUS in ${SUITE}/${ARCH}) published: $URL" if [ "$NOTIFY" = "diffoscope" ] ; then MESSAGE="$MESSAGE (error when running $DIFFOSCOPE)" fi @@ -74,10 +74,8 @@ save_artifacts() { } cleanup_all() { - if [ $SAVE_ARTIFACTS -eq 1 ] ; then save_artifacts ; fi - if [ "$NOTIFY" = "failure" ] ; then - echo "No artifacts were saved for this build." | tee -a ${RBUILDLOG} - irc_message "Check $REPRODUCIBLE_URL/$SUITE/$ARCH/$SRCPACKAGE and $BUILD_URL to find out why no artifacts were saved (final status $STATUS)" + if [ $SAVE_ARTIFACTS -eq 1 ] ; then + save_artifacts elif [ ! -z "$NOTIFY" ] && [ $SAVE_ARTIFACTS -eq 0 ] ; then irc_message "$REPRODUCIBLE_URL/$SUITE/$ARCH/$SRCPACKAGE done: $STATUS" fi -- cgit v1.2.3-54-g00ecf