diff options
author | Olivier Blin <dev@blino.org> | 2015-11-05 00:04:23 +0100 |
---|---|---|
committer | Olivier Blin <dev@blino.org> | 2015-11-05 00:04:23 +0100 |
commit | a760303742019deb4cdfbffea0b33bb1413a2881 (patch) | |
tree | f49498bf1a908ead51621b012974d952ca9aa793 /lib.php | |
parent | da80b8b69387e98ccd11612b052f66f39e85cef2 (diff) | |
download | pkgsubmit-a760303742019deb4cdfbffea0b33bb1413a2881.tar pkgsubmit-a760303742019deb4cdfbffea0b33bb1413a2881.tar.gz pkgsubmit-a760303742019deb4cdfbffea0b33bb1413a2881.tar.bz2 pkgsubmit-a760303742019deb4cdfbffea0b33bb1413a2881.tar.xz pkgsubmit-a760303742019deb4cdfbffea0b33bb1413a2881.zip |
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.
Diffstat (limited to 'lib.php')
-rw-r--r-- | lib.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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]); |