summaryrefslogtreecommitdiffstats
path: root/lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib.php')
-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]);