summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2015-11-05 00:04:23 +0100
committerOlivier Blin <dev@blino.org>2015-11-05 00:04:23 +0100
commita760303742019deb4cdfbffea0b33bb1413a2881 (patch)
treef49498bf1a908ead51621b012974d952ca9aa793
parentda80b8b69387e98ccd11612b052f66f39e85cef2 (diff)
downloadpkgsubmit-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.
-rw-r--r--lib.php4
1 files changed, 3 insertions, 1 deletions
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]);