Skip to content

Commit

Permalink
MFH fix #534: pear search doesn't list unstable releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Beaver committed Apr 3, 2004
1 parent e1fa70d commit 5336ad6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pear/PEAR/Command/Remote.php
Expand Up @@ -250,14 +250,14 @@ function doSearch($command, $options, $params)

$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) {
Expand All @@ -274,9 +274,13 @@ function doSearch($command, $options, $params)
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,
);
Expand Down
1 change: 1 addition & 0 deletions pear/package-PEAR.xml
Expand Up @@ -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

Expand Down

0 comments on commit 5336ad6

Please sign in to comment.