summaryrefslogtreecommitdiffstats
path: root/autobuild/results.php
diff options
context:
space:
mode:
Diffstat (limited to 'autobuild/results.php')
-rw-r--r--autobuild/results.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/autobuild/results.php b/autobuild/results.php
index 9e0f13d..e3ab4d1 100644
--- a/autobuild/results.php
+++ b/autobuild/results.php
@@ -19,9 +19,16 @@ while (false !== ($entry = readdir($handle))) {
}
}
closedir($handle);
+$handle = opendir('cauldron/aarch64/core/');
+while (false !== ($entry = readdir($handle))) {
+ if (preg_match("/^....-..-..$/", $entry, $matches)) {
+ array_push($runs, $matches[0]);
+ }
+}
+closedir($handle);
sort($runs);
-$latest = readlink("cauldron/x86_64/core/latest");
+$latest = readlink("cauldron/aarch64/core/latest");
$run = $_GET['run'];
if (!$run) {
$run = $latest;
@@ -46,8 +53,7 @@ if ($handle = opendir('/distrib/bootstrap/distrib/cauldron/SRPMS/core/release/')
$prev_failure = Array();
if ($prev) {
- $base_dir = "cauldron/x86_64/core/$prev";
- $status_name = "$base_dir/status.core.log";
+ $status_name = array_values(glob("cauldron/*/core/$prev/status.core.log"))[0];
$status_file = fopen($status_name, "r");
while (!feof($status_file)) {
$line = fgets($status_file);
@@ -68,8 +74,7 @@ $fixed = Array();
$removed = Array();
$broken = Array();
-$base_dir = "cauldron/x86_64/core/$run";
-
+$base_dir = array_values(glob("cauldron/*/core/$run"))[0];
$status_name = "$base_dir/status.core.log";
if (!file_exists($status_name)) {