summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2024-12-20 20:01:09 +0000
committerPascal Terjan <pterjan@mageia.org>2024-12-20 20:01:37 +0000
commit5d38c7075d08b0b0bf062d2ccfb365d034f65078 (patch)
tree9e60985dbef0cd118769dfdb8874a44d1da12ea7
parentb6da7d12871c18575a57a0479dcf577d04235f63 (diff)
downloadpkgsubmit-5d38c7075d08b0b0bf062d2ccfb365d034f65078.tar
pkgsubmit-5d38c7075d08b0b0bf062d2ccfb365d034f65078.tar.gz
pkgsubmit-5d38c7075d08b0b0bf062d2ccfb365d034f65078.tar.bz2
pkgsubmit-5d38c7075d08b0b0bf062d2ccfb365d034f65078.tar.xz
pkgsubmit-5d38c7075d08b0b0bf062d2ccfb365d034f65078.zip
Support iurt's new log directory name
-rw-r--r--autobuild/results.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/autobuild/results.php b/autobuild/results.php
index c9bb05d..017be2d 100644
--- a/autobuild/results.php
+++ b/autobuild/results.php
@@ -438,7 +438,10 @@ foreach ($failure as $rpm => $error) {
}
}
echo "<tr>";
- if (file_exists("$base_dir/$rpm/")) {
+ $rpm_base = substr_replace($rpm, '', -8);
+ if (file_exists("$base_dir/$rpm_base/")) {
+ echo "<td><a href='$base_dir/$rpm_base/'>$rpm</a></td>";
+ } elseif (file_exists("$base_dir/$rpm/")) {
echo "<td><a href='$base_dir/$rpm/'>$rpm</a></td>";
} else {
echo "<td>$rpm</td>";