cvs: php-src /pear/PEAR/Command Remote.php

From: Date: Sat, 03 Apr 2004 06:04:34 +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-208@lists.php.net to get a copy of this message
cellog Sat Apr 3 01:04:34 2004 EDT Modified files: /php-src/pear/PEAR/Command Remote.php Log: fix #534: pear search doesn't list unstable releases http://cvs.php.net/diff.php/php-src/pear/PEAR/Command/Remote.php?r1=1.37&r2=1.38&ty=u Index: php-src/pear/PEAR/Command/Remote.php diff -u php-src/pear/PEAR/Command/Remote.php:1.37 php-src/pear/PEAR/Command/Remote.php:1.38 --- php-src/pear/PEAR/Command/Remote.php:1.37 Thu Jan 8 12:33:13 2004 +++ php-src/pear/PEAR/Command/Remote.php Sat Apr 3 01:04:31 2004 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Remote.php,v 1.37 2004/01/08 17:33:13 sniper Exp $ +// $Id: Remote.php,v 1.38 2004/04/03 06:04:31 cellog Exp $ require_once 'PEAR/Command/Common.php'; require_once 'PEAR/Common.php'; @@ -250,14 +250,14 @@ $r = new PEAR_Remote($this->config); $reg = new PEAR_Registry($this->config->get('php_dir')); - $available = $r->call('package.listAll', true); + $available = $r->call('package.listAll', true, false); if (PEAR::isError($available)) { return $this->raiseError($available); } $data = array( 'caption' => 'Matched packages:', 'border' => true, - 'headline' => array('Package', 'Latest', 'Local'), + 'headline' => array('Package', 'Stable/(Latest)', 'Local'), ); foreach ($available as $name => $info) { @@ -274,9 +274,13 @@ if (isset($params[$name])) $desc .= "\n\n".$info['description']; + $unstable = ''; + if ($info['unstable']) { + $unstable = '/(' . $info['unstable'] . $info['state'] . ')'; + } $data['data'][$info['category']][] = array( $name, - $info['stable'], + $info['stable'] . $unstable, $installed['version'], $desc, );

« previous php.pear.core (#208) next »