summaryrefslogtreecommitdiff
path: root/pear/PEAR/Command/Remote.php
diff options
context:
space:
mode:
authorChristian Dickmann <dickmann@php.net>2002-06-08 18:44:34 +0000
committerChristian Dickmann <dickmann@php.net>2002-06-08 18:44:34 +0000
commit3dd47bc6518380251c422ed18ca12d062a1d20c6 (patch)
treec619d47a366aa6efa20dbfa79525ee5ee6d6b4ab /pear/PEAR/Command/Remote.php
parent5e148e3875ee30276f9e40e589b800e10a50afdb (diff)
downloadphp-git-3dd47bc6518380251c422ed18ca12d062a1d20c6.tar.gz
add modes to list-all. fix a mergerbug
Diffstat (limited to 'pear/PEAR/Command/Remote.php')
-rw-r--r--pear/PEAR/Command/Remote.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/pear/PEAR/Command/Remote.php b/pear/PEAR/Command/Remote.php
index 9cb8106e54..3ae167a255 100644
--- a/pear/PEAR/Command/Remote.php
+++ b/pear/PEAR/Command/Remote.php
@@ -125,6 +125,8 @@ version of DB is 1.2, the downloaded file will be DB-1.2.tgz.',
$info['installed'] = $installed['version'] ? $installed['version'] : '- no -';
$this->ui->outputData($info, $command);
+
+ return true;
}
// }}}
@@ -176,6 +178,19 @@ version of DB is 1.2, the downloaded file will be DB-1.2.tgz.',
if (isset($params[$name]))
$desc .= "\n\n".$info['description'];
+ if (isset($options['mode']))
+ {
+ if ($options['mode'] == 'installed' && !isset($installed['version']))
+ continue;
+ if ($options['mode'] == 'notinstalled' && isset($installed['version']))
+ continue;
+ if ($options['mode'] == 'upgrades'
+ && (!isset($installed['version']) || $installed['version'] == $info['stable']))
+ {
+ continue;
+ };
+ };
+
$data['data'][$info['category']][] = array(
$name,
$info['stable'],