summaryrefslogtreecommitdiffstats
path: root/checkpkgist/checkpkgist.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-05-17 10:50:06 +0200
committerRemi Collet <fedora@famillecollet.com>2014-05-17 10:50:06 +0200
commit4c24570a32a183fc64a251d3c4e5d9144948b51d (patch)
treecaf5584b73554685bfe54ef55e6b66486f1bdaa9 /checkpkgist/checkpkgist.php
parent1e81de2892c6a4816577bb9a6b0a27d051435ec0 (diff)
checkpkglist: drop leading 'v' from version
Diffstat (limited to 'checkpkgist/checkpkgist.php')
-rwxr-xr-xcheckpkgist/checkpkgist.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/checkpkgist/checkpkgist.php b/checkpkgist/checkpkgist.php
index 3488d47..3bde4e2 100755
--- a/checkpkgist/checkpkgist.php
+++ b/checkpkgist/checkpkgist.php
@@ -116,6 +116,9 @@ foreach ($pkgs as $name => $rpm) {
$maxdat = false;
$display = false;
foreach ($pkgs['package']['versions'] as $pkver => $pkg) {
+ if (preg_match('/^v[\.0-9]*$/', $pkver)) {
+ $pkver = substr($pkver, 1);
+ }
if (strpos($pkver, 'dev') !== false) {
continue;
}