From e04fb5c8e79872ab6ff1f1be15b69a50fc647cf8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 14 Dec 2015 13:01:35 +0100 Subject: [PATCH] Sort build steps --- src/root/build.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/root/build.tt b/src/root/build.tt index 8e6c4a48..21a756f1 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -6,7 +6,7 @@ [% isAggregate = constituents.size > 0; -steps = build.buildsteps; +steps = build.buildsteps.nsort('stepnr').reverse; busy = 0; FOR step IN steps; IF step.busy; busy = 1; END; END; %] @@ -23,7 +23,7 @@ FOR step IN steps; IF step.busy; busy = 1; END; END; NrWhatDurationMachineStatus - [% FOREACH step IN steps.reverse %] + [% FOREACH step IN steps %] [% IF ( type == "All" ) || ( type == "Failed" && step.status != 0 ) || ( type == "Running" && step.busy == 1 ) %] [% has_log = seen.${step.drvpath} ? 0 : buildStepLogExists(step); seen.${step.drvpath} = 1;