summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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\+ ||