Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-05 15:47:03 +0200
committerErich Eckner <git@eckner.net>2017-09-05 15:47:03 +0200
commit18187f8f540a80aae22b98087b90579b013d6a35 (patch)
treee3ce48da65ecb3424f8941b8a06b05ff233cc4a1 /bin
parent15195bc33f0e72d231afa95c06e0aec7a384d6a6 (diff)
bin/build-master-status: bugfix & order building packages by date
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|