From: Greg Beaver Date: Sat, 3 Apr 2004 06:06:17 +0000 (+0000) Subject: fix #534: pear search doesn't list unstable releases X-Git-Tag: php-5.0.0RC2RC1~107 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d86149b012549462f2da89cabdd9b1b438bd24c;p=php fix #534: pear search doesn't list unstable releases --- diff --git a/pear/PEAR/Command/Remote.php b/pear/PEAR/Command/Remote.php index 41bd65e42e..a7f5c0c74b 100644 --- a/pear/PEAR/Command/Remote.php +++ b/pear/PEAR/Command/Remote.php @@ -250,14 +250,14 @@ parameter. $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 @@ parameter. 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, ); diff --git a/pear/package-PEAR.xml b/pear/package-PEAR.xml index f896e7b10b..0d809d6c90 100644 --- a/pear/package-PEAR.xml +++ b/pear/package-PEAR.xml @@ -53,6 +53,7 @@ PEAR Installer: + * Bug #534 pear search doesn't list unstable releases * Bug #933 CMD Usability Patch * Bug #1008 safe mode raises warning