summaryrefslogtreecommitdiffstats
path: root/class
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-11-14 14:26:32 +0100
committerRemi Collet <fedora@famillecollet.com>2014-11-14 14:26:32 +0100
commit5dc8fd70803afa8b6fb42c02122651f4d9e76d84 (patch)
tree5a2406027ddc3d25f3264da355bb670f8222c86a /class
parent960d0a8ac65198f747eebed867f51f2ba6a3b008 (diff)
ignore 'psr/log-implementation' from composer
Diffstat (limited to 'class')
-rw-r--r--class/Parser.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/class/Parser.php b/class/Parser.php
index eb6df12..016664f 100644
--- a/class/Parser.php
+++ b/class/Parser.php
@@ -297,6 +297,8 @@ class Parser
{
$tot = 0;
+ $excl = array('psr/log-implementation');
+
$primary = self::readMetadata($rpmrepo, $row);
if ($primary) {
foreach ($primary->package as $package) {
@@ -317,7 +319,9 @@ class Parser
foreach ($fmt as $fmt2) {
$prov = $fmt2->attributes()['name'];
if (preg_match('/^php-composer\((.*)\)$/', $prov, $reg)) {
- $composer = $reg[1];
+ if (!in_array($reg[1], $excl)) {
+ $composer = $reg[1];
+ }
}
}
}