From a760303742019deb4cdfbffea0b33bb1413a2881 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 5 Nov 2015 00:04:23 +0100 Subject: Do not show builds as partial when a .fail file exists in the done directory With non-mandatory arch support, a .fail file may exist in the done directory while the build is still on going for ongoing arches. Thus, the build is not failed, and the status would not be "done" (partial build) either. Only consider a build as "done" (partial) when a .done file is present. --- lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib.php') diff --git a/lib.php b/lib.php index 8fd00eb..213d9cc 100644 --- a/lib.php +++ b/lib.php @@ -85,7 +85,8 @@ function get_refined_packages_list($list_of_files, $package = null, $user = null } $status = ''; - if ($val[1] != 'failure') { + if ($val[1] != 'done' && $val[1] != 'failure') { + // partial/done are detected with .done files // failures are detected with .fail files $status = $val[1]; } @@ -116,6 +117,7 @@ function get_refined_packages_list($list_of_files, $package = null, $user = null } } else if ($ext == '.done') { // beware! this block is called twice for a given $key + $status = 'done'; $pkgs[$key]['buildtime']['start'] = key2timestamp($val[6]); $pkgs[$key]['buildtime']['end'] = round($val[12]); -- cgit v1.2.1