From d56758583bae9ac825cfd6974916b9a50eab64af Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 17 May 2014 10:50:06 +0200 Subject: checkpkglist: drop leading 'v' from version --- checkpkgist.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'checkpkgist.php') 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; } -- cgit