summaryrefslogtreecommitdiff
path: root/bin/build-master-status
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-19 20:21:42 +0100
committerErich Eckner <git@eckner.net>2017-11-19 20:21:42 +0100
commitc5c3454d34ea0e530014771bbee2f8ee70e65e7b (patch)
tree6224fc85b2e6f799f231f81fadb8c3f43b2ab6b4 /bin/build-master-status
parent942b5f002fc473c3a0f1112a2be4bf6fc69fd274 (diff)
downloadbuilder-c5c3454d34ea0e530014771bbee2f8ee70e65e7b.tar.xz
bin/build-master-status: print all build slaves working on an assignment
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-xbin/build-master-status11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/build-master-status b/bin/build-master-status
index eb8da9e..4c44d33 100755
--- a/bin/build-master-status
+++ b/bin/build-master-status
@@ -228,7 +228,16 @@ if ${web}; then
'package repository' \
'build slave'
printf '</tr>'
- find "${work_dir}/package-states" -maxdepth 1 -name '*.locked' -printf '%T@ <tr><td>%TY-%Tm-%Td %TH:%TM</td><td>%f ' -execdir head -n1 {} \; | \
+ find "${work_dir}/package-states" -maxdepth 1 -name '*.locked' \
+ -printf '%T@ <tr><td>%TY-%Tm-%Td %TH:%TM</td><td>%f ' \
+ -execdir sed '
+ :a
+ $!{
+ N
+ s/\n/, /
+ ba
+ }
+ ' '{}' \; | \
sort -k1n,1 | \
sed '
s|^\S\+ ||