mirror of
https://github.com/composer/composer
synced 2025-05-11 09:32:55 +00:00
Return 1 if installation of deps failed, fixes #936
This commit is contained in:
parent
ca1dcc4659
commit
c7b26c8d82
1 changed files with 5 additions and 1 deletions
|
@ -192,7 +192,9 @@ EOT
|
|||
$installer->disableCustomInstallers();
|
||||
}
|
||||
|
||||
$installer->run();
|
||||
if (!$installer->run()) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!$keepVcs && $installedFromVcs
|
||||
&& (
|
||||
|
@ -217,6 +219,8 @@ EOT
|
|||
$io->write('<error>An error occured while removing the VCS metadata: '.$e->getMessage().'</error>');
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
protected function createDownloadManager(IOInterface $io, Config $config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue