summaryrefslogtreecommitdiffstats
path: root/autobuild
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2024-03-29 21:22:06 +0000
committerPascal Terjan <pterjan@mageia.org>2024-03-29 21:22:18 +0000
commite0eccf1d31bb74b0c29c297397fe366ca2c26b35 (patch)
tree01e006443471aeb6c10245cc9102050722fcf1c6 /autobuild
parent55d0475031dca7e1eac4f6a65a67496eb07d9f53 (diff)
downloadpkgsubmit-e0eccf1d31bb74b0c29c297397fe366ca2c26b35.tar
pkgsubmit-e0eccf1d31bb74b0c29c297397fe366ca2c26b35.tar.gz
pkgsubmit-e0eccf1d31bb74b0c29c297397fe366ca2c26b35.tar.bz2
pkgsubmit-e0eccf1d31bb74b0c29c297397fe366ca2c26b35.tar.xz
pkgsubmit-e0eccf1d31bb74b0c29c297397fe366ca2c26b35.zip
Fix regex for mga >= 10
Diffstat (limited to 'autobuild')
-rw-r--r--autobuild/results.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/autobuild/results.php b/autobuild/results.php
index 3b2b124..c9bb05d 100644
--- a/autobuild/results.php
+++ b/autobuild/results.php
@@ -6,7 +6,7 @@
<?php
function parse_package($rpm) {
- if (preg_match("/(.*)-([^-]*-[^-]*mga)[1-9].src.rpm/", $rpm, $matches)) {
+ if (preg_match("/(.*)-([^-]*-[^-]*mga)[0-9]+.src.rpm/", $rpm, $matches)) {
return Array('package' => $matches[1], 'version' => $matches[2]);
} else {
return false;