From 9cd470d160d6ecc0f6ad8876d9aa49f5081ab251 Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Mon, 20 May 2002 10:43:29 +0000 Subject: [PATCH] * no output in verbosity level 0 --- pear/PEAR/Command/Install.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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"; } -- 2.40.0