1
0
Fork 0

Fix link collection

pull/132/head
jsor 2011-11-28 08:51:00 +01:00
parent e512e16e35
commit 28a8b3e4c5
1 changed files with 4 additions and 7 deletions

View File

@ -185,17 +185,14 @@ EOT
private function collectLinks(InputInterface $input, PackageInterface $package) private function collectLinks(InputInterface $input, PackageInterface $package)
{ {
$requiredOnly = (Boolean) $input->getOption('no-install-recommends');
$includeSuggested = (Boolean) $input->getOption('install-suggests');
$links = $package->getRequires(); $links = $package->getRequires();
if (!$requiredOnly) { if (!$input->getOption('no-install-recommends')) {
$links = array_merge($links, $package->getRecommends()); $links = array_merge($links, $package->getRecommends());
}
if ($includeSuggested) { if ($input->getOption('install-suggests')) {
$links = array_merge($links, $package->getSuggests()); $links = array_merge($links, $package->getSuggests());
}
} }
return $links; return $links;