From 1e23354666045dc8fc0e4297a59e264bb5bdd312 Mon Sep 17 00:00:00 2001 From: Igor Wiedler Date: Fri, 27 Apr 2012 14:40:08 +0200 Subject: [PATCH] Do not suggest packages that were installed --- src/Composer/Installer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 4ef8ea848..5819e3996 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -154,7 +154,9 @@ class Installer // output suggestions foreach ($this->suggestedPackages as $suggestion) { - $this->io->write($suggestion['source'].' suggests installing '.$suggestion['target'].' ('.$suggestion['reason'].')'); + if (!$installedRepo->findPackages($suggestion['target'])) { + $this->io->write($suggestion['source'].' suggests installing '.$suggestion['target'].' ('.$suggestion['reason'].')'); + } } if (!$this->dryRun) {