From: Gunnar Wrobel Date: Mon, 4 Oct 2010 10:51:47 +0000 (+0200) Subject: Ensure the installer errors out if something fails during package installation. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b7d424e6af9d5f258ea41b740e3ca1df5182acd0;p=horde.git Ensure the installer errors out if something fails during package installation. --- diff --git a/components/lib/Components/Pear/InstallLocation.php b/components/lib/Components/Pear/InstallLocation.php index 86d91113c..27d6c3e3c 100644 --- a/components/lib/Components/Pear/InstallLocation.php +++ b/components/lib/Components/Pear/InstallLocation.php @@ -249,10 +249,12 @@ class Components_Pear_InstallLocation private function getInstallationHandler() { - return new PEAR_Command_Install( + $installer = new PEAR_Command_Install( new PEAR_Frontend_CLI(), $this->getPearConfig() ); + $installer->setErrorHandling(PEAR_ERROR_EXCEPTION); + return $installer; } /**