From 73977f79b43cde3162e36c175df627c1f228dc51 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 3 Jan 2018 15:44:01 +0100 Subject: bin/return-assignment: report to irc --- bin/return-assignment | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin') diff --git a/bin/return-assignment b/bin/return-assignment index 0b5f63d..c26a71b 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -67,6 +67,14 @@ if [ "$5" = 'ERROR' ]; then --transform="s|^|$1.$2.$3.$4.|" \ '*.build-log.gz' + if [ ! -f "${work_dir}/package-states/$1.$2.$3.$4.broken" ] && \ + [ -p "${irc_dir}/#archlinux-ports/in" ]; then + printf '%s is broken (says %s).\n' \ + "$1" \ + "${slave}" > \ + "${irc_dir}/#archlinux-ports/in" + fi + # shellcheck disable=SC2154 echo "${slave}" >> \ "${work_dir}/package-states/$1.$2.$3.$4.broken" -- cgit v1.2.3-70-g09d2