Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/build-master-status-from-mysql
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-23 09:30:41 +0100
committerErich Eckner <git@eckner.net>2018-01-23 09:30:41 +0100
commitf0c0454a6ad998bc994d8fdaa0be47944fbed4b7 (patch)
tree711d1f22582720927e7da68062fb87f5b8608494 /bin/build-master-status-from-mysql
parenta92f2fcc7bd2b67c4ee5910b4f66edcadd5c9589 (diff)
bin/build-master-status-from-mysql: remove obsolete output
Diffstat (limited to 'bin/build-master-status-from-mysql')
-rwxr-xr-xbin/build-master-status-from-mysql27
1 files changed, 0 insertions, 27 deletions
diff --git a/bin/build-master-status-from-mysql b/bin/build-master-status-from-mysql
index 2ed9a24..a0c2b4f 100755
--- a/bin/build-master-status-from-mysql
+++ b/bin/build-master-status-from-mysql
@@ -5,33 +5,6 @@
# shellcheck source=conf/default.conf
. "${0%/*}/../conf/default.conf"
-# shellcheck disable=SC2016
-{
- printf 'SELECT `build_slaves`.`name`,`build_slaves`.`operator`,`package_sources`.`pkgbase`,`build_slaves`.`last_connection`'
- printf ' FROM `build_slaves`'
- printf ' LEFT JOIN `build_assignments` ON'
- printf ' `build_slaves`.`currently_building`=`build_assignments`.`id`'
- printf ' LEFT JOIN `package_sources` ON'
- printf ' `build_assignments`.`package_source`=`package_sources`.`id`'
- printf ' ORDER BY `build_slaves`.`last_connection`'
-} | \
- ${mysql_command} --html | \
- sed '
- s,</TR>,\0\n,g
- ' | \
- sed '
- \,</TH></TR>$, {
- s,<TH>pkgbase</TH>,<TH>currently building</TH>,
- y,_, ,
- }
- \,</TH></TR>$, ! {
- s,<TD>NULL</TD>,<TD>\&nbsp;</TD>,
- }
- 1 i <html><head><title>list of build slaves</title></head><body>
- $ a </body></html>
- ' | \
- sponge "${webserver_directory}/build-slaves.html"
-
{
mysql_sanity_check || true
{