diff options
| author | Stig Bakken <ssb@php.net> | 2002-06-02 13:07:19 +0000 |
|---|---|---|
| committer | Stig Bakken <ssb@php.net> | 2002-06-02 13:07:19 +0000 |
| commit | f111dff665fb5501065a67928d1b79e9ad8e89a8 (patch) | |
| tree | 43bfb294046c37fdd3aff537f7a2a9f119667322 /pear/PEAR/Command/Build.php | |
| parent | b341789bb86a2b3b5acea3253a15ab4efdaf04e2 (diff) | |
| download | php-git-f111dff665fb5501065a67928d1b79e9ad8e89a8.tar.gz | |
* merge NEW_UI_API branch
Diffstat (limited to 'pear/PEAR/Command/Build.php')
| -rw-r--r-- | pear/PEAR/Command/Build.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pear/PEAR/Command/Build.php b/pear/PEAR/Command/Build.php index ee03d09201..5b15d3c0cb 100644 --- a/pear/PEAR/Command/Build.php +++ b/pear/PEAR/Command/Build.php @@ -56,6 +56,7 @@ Builds one or more extensions contained in a package.' $params[0] = 'package.xml'; } $builder = &new PEAR_Builder($this->ui); + $this->verbose = $this->config->get('verbose'); $err = $builder->build($params[0], array(&$this, 'buildCallback')); if (PEAR::isError($err)) { return $err; @@ -65,10 +66,9 @@ Builds one or more extensions contained in a package.' function buildCallback($what, $data) { - switch ($what) { - case 'output': - $this->ui->displayLine(rtrim($data)); - break; + if (($what == 'cmdoutput' && $this->verbose > 1) || + ($what == 'output' && $this->verbose > 0)) { + $this->ui->outputData(rtrim($data), 'build'); } } } |
