diff options
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-x | bin/build-master-status | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/build-master-status b/bin/build-master-status index 080cc15..758fbb3 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -217,8 +217,10 @@ if ${web}; then 'package repository' \ 'build slave' printf '</tr>' - find "${work_dir}/package-states" -maxdepth 1 -name '*.locked' -printf '<tr><td>%TY-%Tm-%Td %TH:%TM</td><td>%f ' -execdir cat {} \; | \ + find "${work_dir}/package-states" -maxdepth 1 -name '*.locked' -printf '%T@ <tr><td>%TY-%Tm-%Td %TH:%TM</td><td>%f ' -execdir head -n1 {} \; | \ + sort -k1n,1 | \ sed ' + s|^\S\+ || s|$|</td></tr>| s|\.locked |</td><td>| s|\.\([^.]\+\)$|</td><td>\1| |