summaryrefslogtreecommitdiffstats
path: root/autobuild
diff options
context:
space:
mode:
Diffstat (limited to 'autobuild')
-rw-r--r--autobuild/broken.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/autobuild/broken.php b/autobuild/broken.php
index 405abaa..aab5185 100644
--- a/autobuild/broken.php
+++ b/autobuild/broken.php
@@ -8,7 +8,7 @@ $packages = Array();
if ($handle = opendir($srpm_dir)) {
while (false !== ($entry = readdir($handle))) {
if (preg_match("/(.*)-([^-]*-[^-]*mga)[1-9].src.rpm/", $entry, $matches)) {
- $packages[$matches[1]] = $entry;
+ $packages[$matches[1]] = $matches[2];
}
}
closedir($handle);
@@ -31,12 +31,8 @@ if ($status_file) {
preg_match("/(.*)-([^-]*-[^-]*mga)[1-9].src.rpm/", $rpm, $matches);
$package = $matches[1];
$version = $matches[2];
- if($packages[$package]) {
- $build_stat = stat("$base_dir/$rpm");
- $pkg_stat = stat($srpm_dir.$packages[$package]);
- if ($pkg_stat['mtime'] <= $build_stat['mtime']) {
- $failure[$rpm] = $status;
- }
+ if($packages[$package] && $packages[$package] == $version) {
+ $failure[$rpm] = $status;
}
}
}