summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pear/PEAR/Command/Remote.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/pear/PEAR/Command/Remote.php b/pear/PEAR/Command/Remote.php
index 3ae167a255..c92d6e36cc 100644
--- a/pear/PEAR/Command/Remote.php
+++ b/pear/PEAR/Command/Remote.php
@@ -135,7 +135,10 @@ version of DB is 1.2, the downloaded file will be DB-1.2.tgz.',
function doRemoteList($command, $options, $params)
{
$r = new PEAR_Remote($this->config);
- $available = $r->call('package.listAll', true);
+ $list_options = false;
+ if ($this->config->get('preferred_state') == 'stable')
+ $list_options = true;
+ $available = $r->call('package.listAll', $list_options);
if (PEAR::isError($available)) {
return $this->raiseError($available);
}
@@ -162,7 +165,10 @@ version of DB is 1.2, the downloaded file will be DB-1.2.tgz.',
{
$r = new PEAR_Remote($this->config);
$reg = new PEAR_Registry($this->config->get('php_dir'));
- $available = $r->call('package.listAll', true);
+ $list_options = false;
+ if ($this->config->get('preferred_state') == 'stable')
+ $list_options = true;
+ $available = $r->call('package.listAll', $list_options);
if (PEAR::isError($available)) {
return $this->raiseError($available);
}
@@ -345,4 +351,4 @@ version of DB is 1.2, the downloaded file will be DB-1.2.tgz.',
// }}}
}
-?> \ No newline at end of file
+?>