summaryrefslogtreecommitdiffstats
path: root/checkpkgist.php
diff options
context:
space:
mode:
Diffstat (limited to 'checkpkgist.php')
-rwxr-xr-xcheckpkgist.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/checkpkgist.php b/checkpkgist.php
index b7b1712..a57ab25 100755
--- a/checkpkgist.php
+++ b/checkpkgist.php
@@ -70,7 +70,7 @@ class PkgClient {
}
}
-function getMax($name, $rpm) {
+function getMax($name, $rpm, $verrpm) {
static $vers = NULL;
global $pkgs;
@@ -83,7 +83,7 @@ function getMax($name, $rpm) {
}
$rpms = array_keys($pkgs, $name);
- $crt = 0;
+ $crt = (int)$verrpm;
$max = 9999;
if (isset($vers[$rpm])) {
@@ -119,7 +119,6 @@ function run($name, $rpm) {
$name = strtolower($name);
$len = 50;
- $limit = getMax($name, $rpm);
if (in_array($name, ['znerol/php-stringprep', 'psr/http-message-implementation'])) {
return;
@@ -150,6 +149,7 @@ function run($name, $rpm) {
$rpminfo['Providename'] = ["php-composer($name)"];
$rpminfo['Provideversion'] =[$rpmmainver];
}
+ $limit = getMax($name, $rpm, $rpmmainver);
$cpt = 0;
foreach($rpminfo['Providename'] as $i => $n) {
if (preg_match('/^php-composer\((.*)\)/', $n, $res)) {