From 2cfab5ad8fdd5856738deed4f6569e2904e2cfee Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 2 Oct 2015 11:40:11 +0200 Subject: reproducible: spool notifications to package maintainers and only send them once a day --- bin/reproducible_build.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bin/reproducible_build.sh') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 3f01c8a6..07bd0f98 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -114,10 +114,9 @@ update_db_and_html() { [ "$OLD_STATUS" != "$STATUS" ] && [ "$NOTIFY_MAINTAINER" -eq 1 ] && \ [ "$OLD_STATUS" != "depwait" ] && [ "$STATUS" != "depwait" ] && \ [ "$OLD_STATUS" != "404" ] && [ "$STATUS" != "404" ]; then - echo "More information on $REPRODUCIBLE_URL/$SUITE/$ARCH/$SRCPACKAGE, feel free to reply to this email to get more help." | \ - mail -s "$SRCPACKAGE changed in $SUITE/$ARCH: $OLD_STATUS -> $STATUS" \ - -a "From: Reproducible builds folks " \ - "$SRCPACKAGE@packages.debian.org" + # spool notifications and mail them once a day + mkdir -p /srv/reproducible-results/notification-emails + echo "$(date -u +'%Y-%m-%d %H:%M') $REPRODUCIBLE_URL/$SUITE/$ARCH/$SRCPACKAGE changed from $OLD_STATUS -> $STATUS" >> /srv/reproducible-results/notification-emails/$SRCPACKAG fi sqlite3 -init $INIT ${PACKAGES_DB} "REPLACE INTO results (package_id, version, status, build_date, build_duration, builder) VALUES ('$SRCPKGID', '$VERSION', '$STATUS', '$DATE', '$DURATION', '$BUILDER')" if [ ! -z "$DURATION" ] ; then # this happens when not 404 and not_for_us -- cgit v1.2.3-54-g00ecf