summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-04-03 09:38:17 +0200
committerErich Eckner <git@eckner.net>2020-04-03 09:38:17 +0200
commit8b67f33e0f643f21382e3d1523af1cad57d68d3a (patch)
tree2b044233dfafffdab54f479f099dbf1ff2c9ecb6
parent6fe7d1d139f9b01092fac2baeb15a7f7ba9b3c30 (diff)
downloadbuilder-8b67f33e0f643f21382e3d1523af1cad57d68d3a.tar.xz
bin/return-assignment: notify irc if package gets rescheduled and was broken before, too
-rwxr-xr-xbin/return-assignment5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index b1a5ef6..bba5bdb 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -488,7 +488,7 @@ if [ "$6" = 'ERROR' ]; then
mysql_run_query
fi
- if ! ${was_broken_before}; then
+ if ! ${was_broken_before} || [ -n "${rescheduled_packages}" ]; then
# shellcheck disable=SC2119
{
printf '%s/%s ' \
@@ -502,6 +502,9 @@ if [ "$6" = 'ERROR' ]; then
else
printf 'is'
fi
+ if ${was_broken_before}; then
+ printf ' still'
+ fi
# shellcheck disable=SC2154
printf ' broken (says %s)' \
"${slave}"