cvs: php4 /pear/PEAR/Command Package.php

From: Date: Thu, 06 Jun 2002 06:35:13 +0000
Subject: cvs: php4 /pear/PEAR/Command Package.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4431@lists.php.net to get a copy of this message
cox Thu Jun 6 02:35:13 2002 EDT Modified files: /php4/pear/PEAR/Command Package.php Log: Fix package command # can't beleive you don't test commits :-) Index: php4/pear/PEAR/Command/Package.php diff -u php4/pear/PEAR/Command/Package.php:1.34 php4/pear/PEAR/Command/Package.php:1.35 --- php4/pear/PEAR/Command/Package.php:1.34 Sun Jun 2 09:07:18 2002 +++ php4/pear/PEAR/Command/Package.php Thu Jun 6 02:35:12 2002 @@ -17,7 +17,7 @@ // | Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Package.php,v 1.34 2002/06/02 13:07:18 ssb Exp $ +// $Id: Package.php,v 1.35 2002/06/06 06:35:12 cox Exp $ require_once 'PEAR/Common.php'; require_once 'PEAR/Command/Common.php'; @@ -125,7 +125,7 @@ 'options' => array(), 'doc' => ' List all depencies the package has.' - ), + ), ); var $output; @@ -172,23 +172,24 @@ $this->ui->outputData($this->output, $command); return; } - $compress = empty($options['Z']) ? true : false; + $compress = empty($options['nocompress']) ? true : false; $result = $packager->Package($pkginfofile, $compress); - $this->output .= ob_get_contents(); + $this->output = ob_get_contents(); ob_end_clean(); if (PEAR::isError($result)) { $this->ui->outputData($this->output, $command); return $this->raiseError($result); } // Don't want output, only the package file name just created - if (isset($options['n'])) { - $this->output .= $result."\n"; - return; + if (isset($options['showname'])) { + $this->output = $result; } - $lines = explode("\n", $output); + /* (cox) What is supposed to do that code? + $lines = explode("\n", $this->output); foreach ($lines as $line) { $this->output .= $line."n"; } + */ if (PEAR::isError($result)) { $this->output .= "Package failed: ".$result->getMessage(); }

« previous php.pear.cvs (#4431) next »