diff options
author | Christian Dickmann <dickmann@php.net> | 2002-07-02 13:04:01 +0000 |
---|---|---|
committer | Christian Dickmann <dickmann@php.net> | 2002-07-02 13:04:01 +0000 |
commit | a6783f80703f00c62095f3c8fe604de389318ef1 (patch) | |
tree | 07728caf6c6c9fc99e747e38d73f84e9068e0321 /pear | |
parent | 03c034b6d6c8c6cd430e1670c936fe5778493691 (diff) | |
download | php-git-a6783f80703f00c62095f3c8fe604de389318ef1.tar.gz |
make 'remote-info' use package.info. add deps to 'list-all'
Diffstat (limited to 'pear')
-rw-r--r-- | pear/PEAR/Command/Remote.php | 9 | ||||
-rw-r--r-- | pear/PEAR/Frontend/CLI.php | 1 |
2 files changed, 5 insertions, 5 deletions
diff --git a/pear/PEAR/Command/Remote.php b/pear/PEAR/Command/Remote.php index c272ac3b50..dfb3f77707 100644 --- a/pear/PEAR/Command/Remote.php +++ b/pear/PEAR/Command/Remote.php @@ -113,12 +113,10 @@ version of DB is 1.2, the downloaded file will be DB-1.2.tgz.', return $this->raiseError("$command expects one param: the remote package name"); } $r = new PEAR_Remote($this->config); - $available = $r->call('package.listAll', true); - if (PEAR::isError($available)) { - return $this->raiseError($available); + $info = $r->call('package.info', $params[0]); + if (PEAR::isError($info)) { + return $this->raiseError($info); } - $info = $available[$params[0]]; - $info["name"] = $params[0]; $reg = new PEAR_Registry($this->config->get('php_dir')); $installed = $reg->packageInfo($info['name']); @@ -202,6 +200,7 @@ version of DB is 1.2, the downloaded file will be DB-1.2.tgz.', $info['stable'], $installed['version'], $desc, + $info['deps'], ); } $this->ui->outputData($data, $command); diff --git a/pear/PEAR/Frontend/CLI.php b/pear/PEAR/Frontend/CLI.php index 9a59ed7519..e5ef34d39c 100644 --- a/pear/PEAR/Frontend/CLI.php +++ b/pear/PEAR/Frontend/CLI.php @@ -375,6 +375,7 @@ class PEAR_Frontend_CLI extends PEAR foreach($data['data'] as $category) { foreach($category as $pkg) { unset($pkg[3]); + unset($pkg[4]); $this->_tableRow($pkg, null, array(1 => array('wrap' => 55))); } }; |