From 18187f8f540a80aae22b98087b90579b013d6a35 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 5 Sep 2017 15:47:03 +0200 Subject: bin/build-master-status: bugfix & order building packages by date --- bin/build-master-status | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/build-master-status') 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 '' - find "${work_dir}/package-states" -maxdepth 1 -name '*.locked' -printf '%TY-%Tm-%Td %TH:%TM%f ' -execdir cat {} \; | \ + find "${work_dir}/package-states" -maxdepth 1 -name '*.locked' -printf '%T@ %TY-%Tm-%Td %TH:%TM%f ' -execdir head -n1 {} \; | \ + sort -k1n,1 | \ sed ' + s|^\S\+ || s|$|| s|\.locked || s|\.\([^.]\+\)$|\1| -- cgit v1.2.3-70-g09d2