Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-master-status4
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|