summaryrefslogtreecommitdiffstats
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
commitd56758583bae9ac825cfd6974916b9a50eab64af (patch)
tree8d912ea372895529c52a59bee4830384a00ac8d4
parenta00e255dc3a3b49f9cccf1659ca6222f87789f22 (diff)
checkpkglist: drop leading 'v' from version
-rwxr-xr-xcheckpkgist.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/checkpkgist.php b/checkpkgist.php
index 3488d47..3bde4e2 100755
--- a/checkpkgist.php
+++ b/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;
}