Ensure the installer errors out if something fails during package installation.
authorGunnar Wrobel <p@rdus.de>
Mon, 4 Oct 2010 10:51:47 +0000 (12:51 +0200)
committerGunnar Wrobel <p@rdus.de>
Mon, 4 Oct 2010 15:19:49 +0000 (17:19 +0200)
components/lib/Components/Pear/InstallLocation.php

index 86d9111..27d6c3e 100644 (file)
@@ -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;
     }
 
     /**