Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/ping-from-slave4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ping-from-slave b/bin/ping-from-slave
index c70c1d7..e5a67c3 100755
--- a/bin/ping-from-slave
+++ b/bin/ping-from-slave
@@ -14,9 +14,9 @@ if [ "$(
# shellcheck disable=SC2016,SC2154
{
printf 'SELECT COUNT(1) FROM `build_slaves`'
- mysql_join_build_slaves_build_assignments
- printf ' WHERE `build_slaves`.`name`=from_base64("%s");\n' \
+ printf ' WHERE `build_slaves`.`name`=from_base64("%s")' \
"$(printf '%s' "${slave}" | base64 -w0)"
+ printf ' AND `build_slaves`.`currently_building` IS NOT NULL;\n'
} | \
mysql_run_query 'unimportant' || \
echo '1'