index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-01-19 15:15:36 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-01-19 15:15:36 +0100 |
commit | cb5d76d1fca8d951b77002edfae7993b5c375015 (patch) | |
tree | cc10fe335efc0770c5463a39cc2a090c20177d39 /bin | |
parent | d45764513cfae3a0f67cb1e304cdc3e961f5be00 (diff) |
-rwxr-xr-x | bin/return-assignment | 14 |
diff --git a/bin/return-assignment b/bin/return-assignment index fceff50..ebaa73a 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -76,6 +76,20 @@ if [ "$5" = 'ERROR' ]; then # shellcheck disable=SC2154 echo "${slave}" >> \ "${work_dir}/package-states/$1.$2.$3.$4.broken" + ${mysql_command} -e "$( + # shellcheck disable=SC2016 + printf 'UPDATE `build_assignments`' + # shellcheck disable=SC2016 + printf ' JOIN `build_slaves` ON `build_slaves`.`currently_building`=`build_assignments`.`id`' + # shellcheck disable=SC2016 + printf ' SET `build_assignments`.`is_broken`=1, `build_slaves`.`currently_building`=NULL' + # shellcheck disable=SC2016 + printf ' WHERE `build_slaves`.`name`=from_base64("%s");\n' \ + "$( + printf '%s' "${slave}" | \ + base64 -w0 + )" + )" # shellcheck disable=SC2154 sed -i ' |