]> granicus.if.org Git - php/commitdiff
make 'remote-info' use package.info. add deps to 'list-all'
authorChristian Dickmann <dickmann@php.net>
Tue, 2 Jul 2002 13:04:01 +0000 (13:04 +0000)
committerChristian Dickmann <dickmann@php.net>
Tue, 2 Jul 2002 13:04:01 +0000 (13:04 +0000)
pear/PEAR/Command/Remote.php
pear/PEAR/Frontend/CLI.php

index c272ac3b5072d93496a5985eb6be2f47ee9b55f4..dfb3f77707209b65045aa35a3034fce7f06e7941 100644 (file)
@@ -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);
index 9a59ed7519b674c7c0eb506ba2afd68694c709cc..e5ef34d39cfe52d6cad4fd974f6b9972fc8b4f62 100644 (file)
@@ -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)));
                     }
                 };