listing non-stable releases..
| From: | Alan Knowles | Date: | Thu, 13 Jun 2002 10:19:24 +0000 |
| Subject: | listing non-stable releases.. | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-6980@lists.php.net to get a copy of this message | ||
slight change required to list non-stable releases.
Index: Remote.php
===================================================================
RCS file: /repository/php4/pear/PEAR/Command/Remote.php,v
retrieving revision 1.12.2.3
diff -u -r1.12.2.3 Remote.php
--- Remote.php 1 Jun 2002 18:39:36 -0000 1.12.2.3+++ Remote.php 13 Jun 2002 10:19:58 -0000 @@ -171,7 +171,10 @@
{
$r = new PEAR_Remote($this->config);
$reg = new PEAR_Registry($this->config->get('php_dir'));
- $available = $r->call('package.listAll', true);
+ $options = false;
+ if ($this->config->get('preferred_state') == 'stable')
+ $options = true;
+ $available = $r->call('package.listAll', $options);
if (PEAR::isError($available)) {
return $this->raiseError($available);
}
alan@alan:~/Pro