summaryrefslogtreecommitdiff
path: root/pear/PEAR/Command/Remote.php
diff options
context:
space:
mode:
Diffstat (limited to 'pear/PEAR/Command/Remote.php')
-rw-r--r--pear/PEAR/Command/Remote.php9
1 files changed, 4 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);