summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2017-09-15 22:08:09 +0100
committerPascal Terjan <pterjan@mageia.org>2017-09-15 22:08:09 +0100
commit3a9215e6589464e98548e1e74dbd22a31070e46b (patch)
treeddab19fb3b0e27141e4a601c63013bae3d476919
parent09dc9f8d2ae8fe21e1a115d400db023b16ff8347 (diff)
downloadpkgsubmit-3a9215e6589464e98548e1e74dbd22a31070e46b.tar
pkgsubmit-3a9215e6589464e98548e1e74dbd22a31070e46b.tar.gz
pkgsubmit-3a9215e6589464e98548e1e74dbd22a31070e46b.tar.bz2
pkgsubmit-3a9215e6589464e98548e1e74dbd22a31070e46b.tar.xz
pkgsubmit-3a9215e6589464e98548e1e74dbd22a31070e46b.zip
Detect recreate_srpm_failure getting fixed
-rw-r--r--autobuild/results.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/autobuild/results.php b/autobuild/results.php
index 2fcf432..9e0f13d 100644
--- a/autobuild/results.php
+++ b/autobuild/results.php
@@ -111,7 +111,10 @@ while (!feof($status_file)) {
} else {
$build_stat = stat("$base_dir/$rpm");
$pkg_stat = stat('/distrib/bootstrap/distrib/cauldron/SRPMS/core/release/'.$packages[$package]);
- if (file_exists("$base_dir/$rpm") && $pkg_stat['mtime'] > $start_time) {
+ # 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)) {
$fixed[$rpm] = 1;
}
}