From 5649bf3534145e4c6adab8482b6bd2959ea08aac Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 8 Sep 2017 10:57:34 +0200 Subject: reproducible debian: _build.sh: fix IRC notifications when somebody asks for artifacts this code was disabled one year ago when we didn't have #d-r-changes, now that we have it let's send error notifications to #d-r-changes, and notifications explicitly asked to #d-r Signed-off-by: Mattia Rizzolo Signed-off-by: Holger Levsen --- bin/reproducible_build.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 92641635..d9265fc2 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -86,13 +86,16 @@ save_artifacts() { echo "

" >> $HEADER chmod 644 $HEADER # irc message - #if [ ! -z "$NOTIFY" ] ; then - # local MESSAGE="Artifacts for ${SRCPACKAGE}, $STATUS in ${SUITE}/${ARCH}: $URL" - # if [ "$NOTIFY" = "diffoscope" ] ; then - # MESSAGE="$MESSAGE (error running $DIFFOSCOPE)" - # fi - # irc_message debian-reproducible "$MESSAGE" - #fi + if [ ! -z "$NOTIFY" ] ; then + local MESSAGE="Artifacts for ${SRCPACKAGE}, $STATUS in ${SUITE}/${ARCH}: $URL" + if [ "$NOTIFY" = "diffoscope" ] ; then + irc_message debian-reproducible-changes "$MESSAGE (error running $DIFFOSCOPE)" + MESSAGE="$MESSAGE (error running $DIFFOSCOPE)" + else + # somebody explicitly asked for artifacts, so give them the artifacts + irc_message debian-reproducible "$MESSAGE" + fi + fi } cleanup_all() { -- cgit v1.2.3-54-g00ecf