]> granicus.if.org Git - php/commitdiff
* no output in verbosity level 0
authorStig Bakken <ssb@php.net>
Mon, 20 May 2002 10:43:29 +0000 (10:43 +0000)
committerStig Bakken <ssb@php.net>
Mon, 20 May 2002 10:43:29 +0000 (10:43 +0000)
pear/PEAR/Command/Install.php

index 6802193ee00c521f85b39570b981b38a8e40c5f9..8ba84db3431ad1a3a76f9d107e3cf1c04d3b6e9f 100644 (file)
@@ -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";
                     }