diff options
author | Pascal Terjan <pterjan@mageia.org> | 2022-03-12 07:36:58 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2022-03-12 07:40:14 +0000 |
commit | c387881b84f1cfa54385c5af11d35703fa6cd491 (patch) | |
tree | eeee03d3af9b4bad64f341fdd8b2cb389436e355 | |
parent | 8cfb1e2f00c1d427200b098c3111ef3cb191fb65 (diff) | |
download | pkgsubmit-c387881b84f1cfa54385c5af11d35703fa6cd491.tar pkgsubmit-c387881b84f1cfa54385c5af11d35703fa6cd491.tar.gz pkgsubmit-c387881b84f1cfa54385c5af11d35703fa6cd491.tar.bz2 pkgsubmit-c387881b84f1cfa54385c5af11d35703fa6cd491.tar.xz pkgsubmit-c387881b84f1cfa54385c5af11d35703fa6cd491.zip |
Fix some PHP warnings
-rw-r--r-- | autobuild/results.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autobuild/results.php b/autobuild/results.php index da18802..5e2875f 100644 --- a/autobuild/results.php +++ b/autobuild/results.php @@ -111,9 +111,9 @@ while (!feof($status_file)) { if (preg_match("/^(.*): (.*)$/", $line, $matches)) { $rpm = $matches[1]; $status = $matches[2]; - if ($start_time == 0) { + if ($start_time == 0 && $status != 'recreate_srpm_failure' && $status != 'not_on_this_arch') { $build_stat = stat("$base_dir/$rpm"); - if ($build_stat['mtime']) { + if ($build_stat && $build_stat['mtime']) { $start_time = $build_stat['mtime']; } } |