Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
Diffstat (limited to 'bin/return-assignment')
-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"