summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2020-11-26 17:44:52 +0000
committerPascal Terjan <pterjan@mageia.org>2020-11-26 17:44:52 +0000
commitcc250dd8d25851ba0f53cfc3b944f0eb08335b95 (patch)
treead3a89ed4ce628b4708304f1d9190d0cb805c064
parent1577a55fcfd865401b16eee0fa5e34cfd54f2ec1 (diff)
downloadpkgsubmit-cc250dd8d25851ba0f53cfc3b944f0eb08335b95.tar
pkgsubmit-cc250dd8d25851ba0f53cfc3b944f0eb08335b95.tar.gz
pkgsubmit-cc250dd8d25851ba0f53cfc3b944f0eb08335b95.tar.bz2
pkgsubmit-cc250dd8d25851ba0f53cfc3b944f0eb08335b95.tar.xz
pkgsubmit-cc250dd8d25851ba0f53cfc3b944f0eb08335b95.zip
Fix more warnings
-rw-r--r--autobuild/results.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/autobuild/results.php b/autobuild/results.php
index 19af284..f841cd0 100644
--- a/autobuild/results.php
+++ b/autobuild/results.php
@@ -120,10 +120,10 @@ while (!feof($status_file)) {
$failure[$rpm] = $status;
$parsed = parse_package($rpm);
$package = $parsed['package'];
- if(!$prev_failure[$package]) {
+ if(!array_key_exists($package, $prev_failure)) {
$broken[$rpm] = 1;
}
- if(!$packages[$package]) {
+ if(!array_key_exists($package, $packages)) {
$removed[$rpm] = 1;
} else {
$build_stat = stat("$base_dir/$rpm");