summaryrefslogtreecommitdiffstats
path: root/class
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-12-23 08:12:21 +0100
committerRemi Collet <fedora@famillecollet.com>2016-12-23 08:12:21 +0100
commitf1f4f4ce40bad7eb93fa4c6b30bb57cfd07bccd4 (patch)
tree8533a5de47a37ab4075a3895fd211e621af4cb12 /class
parentf723a3a70503ce83e0c9614cde7188ba79ad2239 (diff)
manage '-implementation' packagist provide
Diffstat (limited to 'class')
-rw-r--r--class/Parser.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/class/Parser.php b/class/Parser.php
index 7ea73f2..fc5059d 100644
--- a/class/Parser.php
+++ b/class/Parser.php
@@ -297,7 +297,7 @@ class Parser
{
$tot = 0;
- $excl = array('psr/log-implementation', 'psr/http-message-implementation', 'udan11/sql-parser');
+ $excl = array('udan11/sql-parser');
$primary = self::readMetadata($rpmrepo, $row);
if ($primary) {
@@ -319,7 +319,9 @@ class Parser
foreach ($fmt as $fmt2) {
$prov = $fmt2->attributes()['name'];
if (preg_match('/^php-composer\((.*)\)$/', $prov, $reg)) {
- if (substr($reg[1], 0, 4)!="ext-" && !in_array($reg[1], $excl)) {
+ if (substr($reg[1], 0, 4) != 'ext-'
+ && substr($reg[1], -15) != '-implementation'
+ && !in_array($reg[1], $excl)) {
$composer = $reg[1];
}
}