summaryrefslogtreecommitdiffstats
path: root/autobuild/results.php
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2020-01-27 23:36:36 +0000
committerPascal Terjan <pterjan@mageia.org>2020-01-27 23:36:36 +0000
commit02e0f4329243e9e5e9dd037375217829d332c160 (patch)
treef95bfa9f53b4cdb3ace23c0bc0e92693f168058a /autobuild/results.php
parent09e3290cf424f1635c69659bd271fae6951fbac3 (diff)
downloadpkgsubmit-02e0f4329243e9e5e9dd037375217829d332c160.tar
pkgsubmit-02e0f4329243e9e5e9dd037375217829d332c160.tar.gz
pkgsubmit-02e0f4329243e9e5e9dd037375217829d332c160.tar.bz2
pkgsubmit-02e0f4329243e9e5e9dd037375217829d332c160.tar.xz
pkgsubmit-02e0f4329243e9e5e9dd037375217829d332c160.zip
Handle new autobuild being on aarch64
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)) {