From c5c3454d34ea0e530014771bbee2f8ee70e65e7b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 19 Nov 2017 20:21:42 +0100 Subject: bin/build-master-status: print all build slaves working on an assignment --- bin/build-master-status | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'bin/build-master-status') 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 '' - find "${work_dir}/package-states" -maxdepth 1 -name '*.locked' -printf '%T@ %TY-%Tm-%Td %TH:%TM%f ' -execdir head -n1 {} \; | \ + find "${work_dir}/package-states" -maxdepth 1 -name '*.locked' \ + -printf '%T@ %TY-%Tm-%Td %TH:%TM%f ' \ + -execdir sed ' + :a + $!{ + N + s/\n/, / + ba + } + ' '{}' \; | \ sort -k1n,1 | \ sed ' s|^\S\+ || -- cgit v1.2.3-70-g09d2