diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-05-17 10:50:06 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-05-17 10:50:06 +0200 |
commit | 4c24570a32a183fc64a251d3c4e5d9144948b51d (patch) | |
tree | caf5584b73554685bfe54ef55e6b66486f1bdaa9 /checkpkgist/checkpkgist.php | |
parent | 1e81de2892c6a4816577bb9a6b0a27d051435ec0 (diff) |
checkpkglist: drop leading 'v' from version
Diffstat (limited to 'checkpkgist/checkpkgist.php')
-rwxr-xr-x | checkpkgist/checkpkgist.php | 3 |
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; } |