diff options
author | Alan Knowles <alan_k@php.net> | 2002-06-14 15:03:29 +0000 |
---|---|---|
committer | Alan Knowles <alan_k@php.net> | 2002-06-14 15:03:29 +0000 |
commit | 4f1531b1632ba3408ade5400ec46843cb312c0fb (patch) | |
tree | 869ba150cf8145fe358fcc4bb9543bdaa6606147 | |
parent | 78fffcce0ee5a327e1222fed64bcf3cfb9d2256d (diff) | |
download | php-git-4f1531b1632ba3408ade5400ec46843cb312c0fb.tar.gz |
remote list and remote listall, can now list non-stable packages if you set prefered_state to something else
-rw-r--r-- | pear/PEAR/Command/Remote.php | 12 |
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 +?> |