$bn = basename($pkg);
$info = $this->installer->install($pkg, $options, $this->config);
if (is_array($info)) {
- $label = "$info[package] $info[version]";
- $this->ui->displayLine("$command ok: $label");
+ if ($this->config->get('verbose') > 0) {
+ $label = "$info[package] $info[version]";
+ $this->ui->displayLine("$command ok: $label");
+ }
} else {
$failmsg = "$command failed";
}
case 'uninstall':
foreach ($params as $pkg) {
if ($this->installer->uninstall($pkg, $options)) {
- $this->ui->displayLine("uninstall ok");
+ if ($this->config->get('verbose') > 0) {
+ $this->ui->displayLine("uninstall ok");
+ }
} else {
$failmsg = "uninstall failed";
}