summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-03 15:44:01 +0100
committerErich Eckner <git@eckner.net>2018-01-03 15:44:01 +0100
commit73977f79b43cde3162e36c175df627c1f228dc51 (patch)
treef6a476a87109c59dfc29e3d81c87f940ba8a62cc /bin
parent1feca7e5466dec92bba8ffb088aef21c07e1a4bc (diff)
downloadbuilder-73977f79b43cde3162e36c175df627c1f228dc51.tar.xz
bin/return-assignment: report to irc
Diffstat (limited to 'bin')
-rwxr-xr-xbin/return-assignment8
1 files changed, 8 insertions, 0 deletions
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"