cvs: pear-core /PEAR/Command Install.php
| From: | Greg Beaver | Date: | Mon, 23 May 2005 03:04:35 +0000 |
| Subject: | cvs: pear-core /PEAR/Command Install.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-32023@lists.php.net to get a copy of this message | ||
cellog Sun May 22 23:04:35 2005 EDT
Modified files:
/pear-core/PEAR/Command Install.php
Log:
don't fail upgrade-all unless every package can't be upgraded
http://cvs.php.net/diff.php/pear-core/PEAR/Command/Install.php?r1=1.98&r2=1.99&ty=u
Index: pear-core/PEAR/Command/Install.php
diff -u pear-core/PEAR/Command/Install.php:1.98 pear-core/PEAR/Command/Install.php:1.99
--- pear-core/PEAR/Command/Install.php:1.98 Sun May 22 22:48:00 2005
+++ pear-core/PEAR/Command/Install.php Sun May 22 23:04:34 2005
@@ -16,7 +16,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Install.php,v 1.98 2005/05/23 02:48:00 cellog Exp $
+ * @version CVS: $Id: Install.php,v 1.99 2005/05/23 03:04:34 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -424,7 +424,9 @@
}
$err['headline'] = 'Install Errors';
$this->ui->outputData($err);
- return $this->raiseError("$command failed");
+ if (!count($downloaded)) {
+ return $this->raiseError("$command failed");
+ }
}
$data = array(
'headline' => 'Packages that would be Installed'