cvs: pear-core(PEAR_1_3) /PEAR/Command Install.php
| From: | Greg Beaver | Date: | Tue, 19 Oct 2004 04:08:42 +0000 |
| Subject: | cvs: pear-core(PEAR_1_3) /PEAR/Command Install.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-1059@lists.php.net to get a copy of this message | ||
cellog Tue Oct 19 00:08:42 2004 EDT
Modified files: (Branch: PEAR_1_3)
/pear-core/PEAR/Command Install.php
Log:
fix #2189, upgrade-all stops on error
http://cvs.php.net/diff.php/pear-core/PEAR/Command/Install.php?r1=1.53&r2=1.53.2.1&ty=u
Index: pear-core/PEAR/Command/Install.php
diff -u pear-core/PEAR/Command/Install.php:1.53 pear-core/PEAR/Command/Install.php:1.53.2.1
--- pear-core/PEAR/Command/Install.php:1.53 Sun May 16 11:39:07 2004
+++ pear-core/PEAR/Command/Install.php Tue Oct 19 00:08:42 2004
@@ -16,7 +16,7 @@
// | Author: Stig Sæther Bakken <ssb@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Install.php,v 1.53 2004/05/16 15:39:07 pajoye Exp $
+// $Id: Install.php,v 1.53.2.1 2004/10/19 04:08:42 cellog Exp $
require_once "PEAR/Command/Common.php";
require_once "PEAR/Installer.php";
@@ -303,7 +303,13 @@
$downloaded = $this->downloader->getDownloadedPackages();
$this->installer->sortPkgDeps($downloaded);
foreach ($downloaded as $pkg) {
+ PEAR::pushErrorHandling(PEAR_ERROR_RETURN);
$info = $this->installer->install($pkg['file'], $options,
$this->config);
+ PEAR::popErrorHandling();
+ if (PEAR::isError($info)) {
+ $this->ui->outputData('ERROR: ' .$info->getMessage());
+ continue;
+ }
if (is_array($info)) {
if ($this->config->get('verbose') > 0) {
$label = "$info[package] $info[version]";