summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--checkpkgist.json1
-rwxr-xr-xcheckpkgist.php17
2 files changed, 16 insertions, 2 deletions
diff --git a/checkpkgist.json b/checkpkgist.json
index e758cae..61be41b 100644
--- a/checkpkgist.json
+++ b/checkpkgist.json
@@ -42,5 +42,6 @@
"php-phpseclib3": "phpseclib\/phpseclib",
"php-sanmai-phpunit-legacy-adapter": "sanmai\/phpunit-legacy-adapter",
"php-laminas-code4": "laminas\/laminas-code",
+ "php-friendsofphp-proxy-manager-lts": "friendsofphp\/proxy-manager-lts",
"phinx": "robmorgan\/phinx"
}
diff --git a/checkpkgist.php b/checkpkgist.php
index 418c875..756c429 100755
--- a/checkpkgist.php
+++ b/checkpkgist.php
@@ -151,18 +151,31 @@ function run($name, $rpm) {
}
$rpmmainver = "n/a";
$rpminfo['Providename'] = ["php-composer($name)"];
- $rpminfo['Provideversion'] = $rpmmainver;
+ $rpminfo['Provideversion'] =[$rpmmainver];
}
+ $cpt = 0;
foreach($rpminfo['Providename'] as $i => $n) {
if (preg_match('/php-composer\((.*)\)/', $n, $res)) {
- $rpmver = $rpminfo['Provideversion'][$i];
$name = $res[1];
} else {
+ unset($rpminfo['Providename'][$i]);
continue;
}
if (strpos($name, '-implementation') || strpos($name, '-api') || strpos($name, '/zend')) {
+ unset($rpminfo['Providename'][$i]);
continue;
}
+ $cpt++;
+ }
+ if (!$cpt) {
+ $rpminfo['Providename'] = ["php-composer($name)"];
+ $rpminfo['Provideversion'] =[$rpmmainver];
+ }
+ foreach($rpminfo['Providename'] as $i => $n) {
+ if (preg_match('/php-composer\((.*)\)/', $n, $res)) {
+ $rpmver = $rpminfo['Provideversion'][$i];
+ $name = $res[1];
+ }
$pkgs = $client->getPackage($name);
if ($pkgs && isset($pkgs['packages'][$name])) {
$maxver = "";