cvs: pear-core /PEAR/Command Remote.php
| From: | Greg Beaver | Date: | Sat, 30 Jul 2005 04:25:33 +0000 |
| Subject: | cvs: pear-core /PEAR/Command Remote.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-33464@lists.php.net to get a copy of this message | ||
cellog Sat Jul 30 00:25:33 2005 EDT
Modified files:
/pear-core/PEAR/Command Remote.php
Log:
fix version number of 0 if no stable releases have been made yet
for remote-list and list-all commands
http://cvs.php.net/diff.php/pear-core/PEAR/Command/Remote.php?r1=1.78&r2=1.79&ty=u
Index: pear-core/PEAR/Command/Remote.php
diff -u pear-core/PEAR/Command/Remote.php:1.78 pear-core/PEAR/Command/Remote.php:1.79
--- pear-core/PEAR/Command/Remote.php:1.78 Thu May 12 00:24:33 2005
+++ pear-core/PEAR/Command/Remote.php Sat Jul 30 00:25:33 2005
@@ -17,7 +17,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: Remote.php,v 1.78 2005/05/12 04:24:33 cellog Exp $
+ * @version CVS: $Id: Remote.php,v 1.79 2005/07/30 04:25:33 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -248,7 +248,8 @@
$data = '(no packages available yet)';
} else {
foreach ($available as $name => $info) {
- $data['data'][] = array($name, isset($info['stable']) ?
$info['stable'] : '-n/a-');
+ $data['data'][] = array($name, (isset($info['stable'])
&& $info['stable'])
+ ? $info['stable'] : '-n/a-');
}
}
$this->ui->outputData($data, $command);
@@ -327,6 +328,9 @@
unset($local_pkgs[$pos]);
}
+ if (isset($info['stable']) && !$info['stable']) {
+ $info['stable'] = null;
+ }
$data['data'][$info['category']][] = array(
$reg->channelAlias($channel) . '/' . $name,
@$info['stable'],