diff options
Diffstat (limited to 'checkpkgist.php')
-rwxr-xr-x | checkpkgist.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/checkpkgist.php b/checkpkgist.php index a91e1ab..e853081 100755 --- a/checkpkgist.php +++ b/checkpkgist.php @@ -81,13 +81,14 @@ function getMax($name, $rpm) { $crt = 0; $max = 9999; - if (preg_match('/[0-9]+$/', $rpm, $reg)) { - // This already a versionned name - $crt = intval($reg[0]); - } if (isset($vers[$rpm])) { $crt = $vers[$rpm]; $max = $crt+1; + + } else if (preg_match('/[0-9]+$/', $rpm, $reg)) { + // This already a versionned name + $crt = intval($reg[0]); + $max = $crt+1; } foreach($rpms as $alt) { if ($alt != $rpm && preg_match('/[0-9]+$/', $alt, $reg)) { |