summaryrefslogtreecommitdiffstats
path: root/class/Parser.php
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-03-03 16:23:23 +0100
committerRemi Collet <remi@remirepo.net>2020-03-03 16:23:23 +0100
commitc7274ba28ed9e5a163227f4575bcb6a0e218ddd1 (patch)
tree0e48fd223c86fd4dfff82d165f8f8d06dde50634 /class/Parser.php
parent427e92293213a629709da8c7175e93abe1150510 (diff)
fix git repo URL
Diffstat (limited to 'class/Parser.php')
-rw-r--r--class/Parser.php9
1 files changed, 7 insertions, 2 deletions
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 <johan@x-tnd.be>
* @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];