1
0
Fork 0

Skip some packages in pear requirements

pull/498/merge
Jordi Boggiano 2012-04-08 23:11:14 +02:00
parent 278f0ec350
commit 68a1bc645b
1 changed files with 9 additions and 0 deletions

View File

@ -216,6 +216,15 @@ class PearRepository extends ArrayRepository
$data[$name] = $this->parseVersion($options); $data[$name] = $this->parseVersion($options);
} elseif ('package' == $name) { } elseif ('package' == $name) {
foreach ($options as $key => $value) { 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)) { if (is_array($value)) {
$dataKey = $value['name']; $dataKey = $value['name'];
if (false === strpos($dataKey, '/')) { if (false === strpos($dataKey, '/')) {