cvs: php-src /pear/PEAR/Command Remote.php
| From: | Greg Beaver | Date: | Sat, 03 Apr 2004 15:56:00 +0000 |
| Subject: | cvs: php-src /pear/PEAR/Command Remote.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-216@lists.php.net to get a copy of this message | ||
cellog Sat Apr 3 10:56:00 2004 EDT
Modified files:
/php-src/pear/PEAR/Command Remote.php
Log:
fixed #534 for real (remove notice if state=stable doesn't exist, and use "none"
for stable version number)
http://cvs.php.net/diff.php/php-src/pear/PEAR/Command/Remote.php?r1=1.38&r2=1.39&ty=u
Index: php-src/pear/PEAR/Command/Remote.php
diff -u php-src/pear/PEAR/Command/Remote.php:1.38 php-src/pear/PEAR/Command/Remote.php:1.39
--- php-src/pear/PEAR/Command/Remote.php:1.38 Sat Apr 3 01:04:31 2004
+++ php-src/pear/PEAR/Command/Remote.php Sat Apr 3 10:56:00 2004
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: Remote.php,v 1.38 2004/04/03 06:04:31 cellog Exp $
+// $Id: Remote.php,v 1.39 2004/04/03 15:56:00 cellog Exp $
require_once 'PEAR/Command/Common.php';
require_once 'PEAR/Common.php';
@@ -278,6 +278,9 @@
if ($info['unstable']) {
$unstable = '/(' . $info['unstable'] . $info['state']
. ')';
}
+ if (!isset($info['stable']) || !$info['stable']) {
+ $info['stable'] = 'none';
+ }
$data['data'][$info['category']][] = array(
$name,
$info['stable'] . $unstable,
@@ -287,7 +290,7 @@
}
if (!isset($data['data'])) {
return $this->raiseError('no packages found');
- };
+ }
$this->ui->outputData($data, $command);
return true;
}