cvs: php4 /pear/PEAR/Command Install.php
| From: | Stig Bakken | Date: | Mon, 20 May 2002 10:43:30 +0000 |
| Subject: | cvs: php4 /pear/PEAR/Command Install.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3965@lists.php.net to get a copy of this message | ||
ssb Mon May 20 06:43:30 2002 EDT
Modified files:
/php4/pear/PEAR/Command Install.php
Log:
* no output in verbosity level 0
Index: php4/pear/PEAR/Command/Install.php
diff -u php4/pear/PEAR/Command/Install.php:1.27 php4/pear/PEAR/Command/Install.php:1.28
--- php4/pear/PEAR/Command/Install.php:1.27 Sun May 19 21:22:00 2002
+++ php4/pear/PEAR/Command/Install.php Mon May 20 06:43:29 2002
@@ -16,7 +16,7 @@
// | Author: Stig Sæther Bakken <ssb@fast.no> |
// +----------------------------------------------------------------------+
//
-// $Id: Install.php,v 1.27 2002/05/20 01:22:00 cox Exp $
+// $Id: Install.php,v 1.28 2002/05/20 10:43:29 ssb Exp $
require_once "PEAR/Command/Common.php";
require_once "PEAR/Installer.php";
@@ -161,8 +161,10 @@
$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 @@
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";
}