From c7b26c8d82e91ece06efa61bb8bfcd04c201017f Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 21 Oct 2012 17:00:05 +0200 Subject: [PATCH] Return 1 if installation of deps failed, fixes #936 --- src/Composer/Command/CreateProjectCommand.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Composer/Command/CreateProjectCommand.php b/src/Composer/Command/CreateProjectCommand.php index 66c70452b..1208a404e 100644 --- a/src/Composer/Command/CreateProjectCommand.php +++ b/src/Composer/Command/CreateProjectCommand.php @@ -192,7 +192,9 @@ EOT $installer->disableCustomInstallers(); } - $installer->run(); + if (!$installer->run()) { + return 1; + } if (!$keepVcs && $installedFromVcs && ( @@ -217,6 +219,8 @@ EOT $io->write('An error occured while removing the VCS metadata: '.$e->getMessage().''); } } + + return 0; } protected function createDownloadManager(IOInterface $io, Config $config)