summaryrefslogtreecommitdiffstats
path: root/lib.php
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2015-11-05 00:00:37 +0100
committerOlivier Blin <dev@blino.org>2015-11-05 00:00:37 +0100
commitda80b8b69387e98ccd11612b052f66f39e85cef2 (patch)
treef707a167d1c95ecf3656da3b06e8fb5b69232b92 /lib.php
parent00b16038243dd784121bd9fc148a2218c72bb178 (diff)
downloadpkgsubmit-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.
Diffstat (limited to 'lib.php')
-rw-r--r--lib.php6
1 files changed, 5 insertions, 1 deletions
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