From: Stig Bakken Date: Mon, 20 May 2002 10:43:29 +0000 (+0000) Subject: * no output in verbosity level 0 X-Git-Tag: RELEASE_0_10~87 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cd470d160d6ecc0f6ad8876d9aa49f5081ab251;p=php * no output in verbosity level 0 --- diff --git a/pear/PEAR/Command/Install.php b/pear/PEAR/Command/Install.php index 6802193ee0..8ba84db343 100644 --- a/pear/PEAR/Command/Install.php +++ b/pear/PEAR/Command/Install.php @@ -161,8 +161,10 @@ More than one package may be specified at once. $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"; } @@ -171,7 +173,9 @@ More than one package may be specified at once. 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"; }