From 68a1bc645b3f88f4b4a9af9998140af440a596fe Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 8 Apr 2012 23:11:14 +0200 Subject: [PATCH] Skip some packages in pear requirements --- src/Composer/Repository/PearRepository.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Composer/Repository/PearRepository.php b/src/Composer/Repository/PearRepository.php index 3efc8f9cf..a73d2c8b4 100644 --- a/src/Composer/Repository/PearRepository.php +++ b/src/Composer/Repository/PearRepository.php @@ -216,6 +216,15 @@ class PearRepository extends ArrayRepository $data[$name] = $this->parseVersion($options); } elseif ('package' == $name) { foreach ($options as $key => $value) { + if (isset($value['providesextension'])) { + // skip PECL dependencies + continue; + } + if (isset($value['uri'])) { + // skip uri-based dependencies + continue; + } + if (is_array($value)) { $dataKey = $value['name']; if (false === strpos($dataKey, '/')) {