From c7274ba28ed9e5a163227f4575bcb6a0e218ddd1 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 3 Mar 2020 16:23:23 +0100 Subject: fix git repo URL --- class/Parser.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'class/Parser.php') diff --git a/class/Parser.php b/class/Parser.php index fc5059d..124b36e 100644 --- a/class/Parser.php +++ b/class/Parser.php @@ -31,7 +31,7 @@ * @author Johan Cwiklinski * @copyright 2010-2014 Remi Collet * @license http://www.gnu.org/licenses/agpl-3.0-standalone.html AGPL License 3.0 or (at your option) any later version - * @link http://github.com/remicollet/rpmphp/ + * @link https://git.remirepo.net/cgit/web/rpmphp.git/ * @since The begining of times. */ class Parser @@ -319,7 +319,12 @@ class Parser foreach ($fmt as $fmt2) { $prov = $fmt2->attributes()['name']; if (preg_match('/^php-composer\((.*)\)$/', $prov, $reg)) { - if (substr($reg[1], 0, 4) != 'ext-' + list($vend, $proj) = explode('/', $reg[1], 2); + if ($vend == 'zendframework') { + if (!$composer) { // only if empty to keep laminas + $composer = $reg[1]; + } + } else if (substr($reg[1], 0, 4) != 'ext-' && substr($reg[1], -15) != '-implementation' && !in_array($reg[1], $excl)) { $composer = $reg[1]; -- cgit