Merge pull request #2883 from dzuelke/dev-suggestions

Only print suggestions in dev mode
main
Jordi Boggiano 10 years ago
commit abc34cc62a

@ -223,7 +223,8 @@ class Installer
} }
$this->installationManager->notifyInstalls(); $this->installationManager->notifyInstalls();
// output suggestions // output suggestions if we're in dev mode
if (!$this->devMode) {
foreach ($this->suggestedPackages as $suggestion) { foreach ($this->suggestedPackages as $suggestion) {
$target = $suggestion['target']; $target = $suggestion['target'];
foreach ($installedRepo->getPackages() as $package) { foreach ($installedRepo->getPackages() as $package) {
@ -234,6 +235,7 @@ class Installer
$this->io->write($suggestion['source'].' suggests installing '.$suggestion['target'].' ('.$suggestion['reason'].')'); $this->io->write($suggestion['source'].' suggests installing '.$suggestion['target'].' ('.$suggestion['reason'].')');
} }
}
if (!$this->dryRun) { if (!$this->dryRun) {
// write lock // write lock

Loading…
Cancel
Save