From f111dff665fb5501065a67928d1b79e9ad8e89a8 Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Sun, 2 Jun 2002 13:07:19 +0000 Subject: * merge NEW_UI_API branch --- pear/PEAR/Command/Build.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pear/PEAR/Command/Build.php') 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'); } } } -- cgit v1.2.1