From 5dc8fd70803afa8b6fb42c02122651f4d9e76d84 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 14 Nov 2014 14:26:32 +0100 Subject: ignore 'psr/log-implementation' from composer --- class/Parser.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'class/Parser.php') 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]; + } } } } -- cgit