1
0
Fork 0

Fix output of dry run with --dev, fixes #676

pull/727/head
Jordi Boggiano 2012-05-23 15:39:33 +02:00
parent 63d7abf196
commit 0752e2b96b
1 changed files with 3 additions and 3 deletions

View File

@ -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) {