cvs: pear-core /PEAR/Command Remote.php
| From: | Greg Beaver | Date: | Thu, 23 Mar 2006 03:41:23 +0000 |
| Subject: | cvs: pear-core /PEAR/Command Remote.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-4635@lists.php.net to get a copy of this message | ||
cellog Thu Mar 23 03:41:23 2006 UTC
Modified files:
/pear-core/PEAR/Command Remote.php
Log:
MFB * fix Bug #7165: warnings in pear
http://cvs.php.net/viewcvs.cgi/pear-core/PEAR/Command/Remote.php?r1=1.90&r2=1.91&diff_format=u
Index: pear-core/PEAR/Command/Remote.php
diff -u pear-core/PEAR/Command/Remote.php:1.90 pear-core/PEAR/Command/Remote.php:1.91
--- pear-core/PEAR/Command/Remote.php:1.90 Thu Mar 2 18:14:13 2006
+++ pear-core/PEAR/Command/Remote.php Thu Mar 23 03:41:23 2006
@@ -17,7 +17,7 @@
* @author Greg Beaver <cellog@php.net>
* @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 2006/03/02 18:14:13 cellog Exp $
+ * @version CVS: $Id: Remote.php,v 1.91 2006/03/23 03:41:23 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -532,6 +532,9 @@
function doListUpgrades($command, $options, $params)
{
require_once 'PEAR/Common.php';
+ if (!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');
$reg = &$this->config->getRegistry();
foreach ($reg->listChannels() as $channel) {