From e25ccddeb704dde08fc0984f02f86dc8fb34f5f1 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 23 May 2012 11:15:58 +0200 Subject: [PATCH] Skip all scripts and not just command ones --- src/Composer/Installer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index db8e62d20..845342ac6 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -367,7 +367,7 @@ class Installer if (!$this->dryRun) { $event = 'Composer\Script\ScriptEvents::PRE_PACKAGE_'.strtoupper($operation->getJobType()); - if (defined($event)) { + if (defined($event) && $this->runScripts) { $this->eventDispatcher->dispatchPackageEvent(constant($event), $operation); } @@ -407,7 +407,7 @@ class Installer $this->installationManager->execute($localRepo, $operation); $event = 'Composer\Script\ScriptEvents::POST_PACKAGE_'.strtoupper($operation->getJobType()); - if (defined($event)) { + if (defined($event) && $this->runScripts) { $this->eventDispatcher->dispatchPackageEvent(constant($event), $operation); }