diff options
author | Greg Beaver <cellog@php.net> | 2004-04-03 06:06:17 +0000 |
---|---|---|
committer | Greg Beaver <cellog@php.net> | 2004-04-03 06:06:17 +0000 |
commit | 9d86149b012549462f2da89cabdd9b1b438bd24c (patch) | |
tree | df621b85aad5c0f3040d6876bbe06f3c488886ff /pear | |
parent | da4f2be35a311e2a35f8a5a5d1c37e8798ef2f29 (diff) | |
download | php-git-9d86149b012549462f2da89cabdd9b1b438bd24c.tar.gz |
fix #534: pear search doesn't list unstable releases
Diffstat (limited to 'pear')
-rw-r--r-- | pear/PEAR/Command/Remote.php | 10 | ||||
-rw-r--r-- | pear/package-PEAR.xml | 1 |
2 files changed, 8 insertions, 3 deletions
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 @@ <notes> PEAR Installer: + * Bug #534 pear search doesn't list unstable releases * Bug #933 CMD Usability Patch * Bug #1008 safe mode raises warning |