From 4f934d928260e126b5d06392e12ee20fae258232 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 26 Oct 2015 15:01:06 +0000 Subject: [PATCH] Avoid sending install notifications in dry-run mode --- src/Composer/Installer.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 505efca90..1a96a45b5 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -234,11 +234,15 @@ class Installer return $res; } } catch (\Exception $e) { - $this->installationManager->notifyInstalls($this->io); + if (!$this->dryRun) { + $this->installationManager->notifyInstalls($this->io); + } throw $e; } - $this->installationManager->notifyInstalls($this->io); + if (!$this->dryRun) { + $this->installationManager->notifyInstalls($this->io); + } // output suggestions if we're in dev mode if ($this->devMode) {