pajoye Sun Jun 4 12:27:55 2006 UTC
Modified files: (Branch: PEAR_1_4)
/pear-core/PEAR/Command Remote.php
Log:
- MFH: betterStates returns false if a state is not valid, and an array in
all other cases (empty or not)
http://cvs.php.net/viewcvs.cgi/pear-core/PEAR/Command/Remote.php?r1=1.90.2.2&r2=1.90.2.3&diff_format=u
Index: pear-core/PEAR/Command/Remote.php
diff -u pear-core/PEAR/Command/Remote.php:1.90.2.2
pear-core/PEAR/Command/Remote.php:1.90.2.3
--- pear-core/PEAR/Command/Remote.php:1.90.2.2 Thu Mar 23 05:45:17 2006
+++ pear-core/PEAR/Command/Remote.php Sun Jun 4 12:27:55 2006
@@ -17,7 +17,7 @@
* @author Greg Beaver <cellog@xxxxxxx>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_0.txt PHP License 3.0
- * @version CVS: $Id: Remote.php,v 1.90.2.2 2006/03/23 05:45:17 cellog Exp $
+ * @version CVS: $Id: Remote.php,v 1.90.2.3 2006/06/04 12:27:55 pajoye Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -532,7 +532,7 @@
function doListUpgrades($command, $options, $params)
{
require_once 'PEAR/Common.php';
- if (isset($params[0]) && !PEAR_Common::betterStates($params[0])) {
+ if (isset($params[0]) &&
!is_array(PEAR_Common::betterStates($params[0]))) {
return $this->raiseError($params[0] . ' is not a valid state
(stable/beta/alpha/devel/etc.) try "pear help list-upgrades"');
}
$savechannel = $channel = $this->config->get('default_channel');
--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|