summaryrefslogtreecommitdiffstats
path: root/autobuild/results.php
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2021-07-05 09:48:30 +0000
committerPascal Terjan <pterjan@mageia.org>2021-07-05 09:48:30 +0000
commit754473b9fc5a3f0171164d44112986cfd3b59e67 (patch)
tree47174724700158169a8f190cf5139566e49e47f2 /autobuild/results.php
parenta223d8aa14d1ff0dedf009b8a3f05c35ea95ae16 (diff)
downloadpkgsubmit-754473b9fc5a3f0171164d44112986cfd3b59e67.tar
pkgsubmit-754473b9fc5a3f0171164d44112986cfd3b59e67.tar.gz
pkgsubmit-754473b9fc5a3f0171164d44112986cfd3b59e67.tar.bz2
pkgsubmit-754473b9fc5a3f0171164d44112986cfd3b59e67.tar.xz
pkgsubmit-754473b9fc5a3f0171164d44112986cfd3b59e67.zip
Avoid a warning when logs are deleted
Diffstat (limited to 'autobuild/results.php')
-rw-r--r--autobuild/results.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/autobuild/results.php b/autobuild/results.php
index c11f5a9..f2dfa18 100644
--- a/autobuild/results.php
+++ b/autobuild/results.php
@@ -126,12 +126,18 @@ while (!feof($status_file)) {
if(!array_key_exists($package, $packages)) {
$removed[$rpm] = 1;
} else {
- $pkg_stat = stat('/distrib/bootstrap/distrib/cauldron/SRPMS/core/release/'.$packages[$package]);
# For recreate_srpm_failure, $rpm is the one that was in the repo
# For other failures, mga release may be incorrect so use something less reliable
- if (($status == 'recreate_srpm_failure' && $rpm != $packages[$package])
- || ($pkg_stat['mtime'] > $start_time)) {
+ if ($status == 'recreate_srpm_failure' && $rpm != $packages[$package]) {
$fixed[$rpm] = 1;
+ } else {
+ $file = '/distrib/bootstrap/distrib/cauldron/SRPMS/core/release/' . $packages[$package];
+ if (file_exists($file)) {
+ $pkg_stat = stat($file);
+ if ($pkg_stat['mtime'] > $start_time) {
+ $fixed[$rpm] = 1;
+ }
+ }
}
}
}