From da80b8b69387e98ccd11612b052f66f39e85cef2 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 5 Nov 2015 00:00:37 +0100 Subject: Handle BS files that may not set a status .fail files for non mandatory-arch do not update the status variable. Thus the status for a previous file would have been incorrectly used. --- lib.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib.php') diff --git a/lib.php b/lib.php index 05fe74f..8fd00eb 100644 --- a/lib.php +++ b/lib.php @@ -83,6 +83,8 @@ function get_refined_packages_list($list_of_files, $package = null, $user = null 'package' => '' ); } + + $status = ''; if ($val[1] != 'failure') { // failures are detected with .fail files $status = $val[1]; @@ -138,7 +140,9 @@ function get_refined_packages_list($list_of_files, $package = null, $user = null } } - $pkgs[$key]['status'][$status] = 1; + if ($status !== '') { + $pkgs[$key]['status'][$status] = 1; + } } // filter packages if a package name was provided -- cgit v1.2.1