diff options
author | Olivier Blin <dev@blino.org> | 2015-11-05 00:00:37 +0100 |
---|---|---|
committer | Olivier Blin <dev@blino.org> | 2015-11-05 00:00:37 +0100 |
commit | da80b8b69387e98ccd11612b052f66f39e85cef2 (patch) | |
tree | f707a167d1c95ecf3656da3b06e8fb5b69232b92 | |
parent | 00b16038243dd784121bd9fc148a2218c72bb178 (diff) | |
download | pkgsubmit-da80b8b69387e98ccd11612b052f66f39e85cef2.tar pkgsubmit-da80b8b69387e98ccd11612b052f66f39e85cef2.tar.gz pkgsubmit-da80b8b69387e98ccd11612b052f66f39e85cef2.tar.bz2 pkgsubmit-da80b8b69387e98ccd11612b052f66f39e85cef2.tar.xz pkgsubmit-da80b8b69387e98ccd11612b052f66f39e85cef2.zip |
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.
-rw-r--r-- | lib.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |