From 0752e2b96b6a8dd53bcab3e151e7aa73e6b1c3d5 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 23 May 2012 15:39:33 +0200 Subject: [PATCH] Fix output of dry run with --dev, fixes #676 --- src/Composer/Installer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index d243c41e0..9b96767a3 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -21,6 +21,7 @@ use Composer\DependencyResolver\Solver; use Composer\DependencyResolver\SolverProblemsException; use Composer\Downloader\DownloadManager; use Composer\Installer\InstallationManager; +use Composer\Installer\NoopInstaller; use Composer\IO\IOInterface; use Composer\Package\AliasPackage; use Composer\Package\Link; @@ -131,6 +132,7 @@ class Installer if ($this->dryRun) { $this->verbose = true; $this->runScripts = false; + $this->installationManager->addInstaller(new NoopInstaller); } if ($this->preferSource) { @@ -404,9 +406,7 @@ class Installer } } - if (!$this->dryRun) { - $this->installationManager->execute($localRepo, $operation); - } + $this->installationManager->execute($localRepo, $operation); $event = 'Composer\Script\ScriptEvents::POST_PACKAGE_'.strtoupper($operation->getJobType()); if (defined($event) && $this->runScripts) {