cvs: pear /PEAR_PackageFileManager PackageFileManager2.php

From: Date: Sun, 26 Feb 2006 18:20:07 +0000
Subject: cvs: pear /PEAR_PackageFileManager PackageFileManager2.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38647@lists.php.net to get a copy of this message
farell Sun Feb 26 18:20:07 2006 UTC Modified files: /pear/PEAR_PackageFileManager PackageFileManager2.php Log: add "clearcontents" option to give ability to keep filelist with replaces tasks on import with package v1 or v2 (default if not set will clear contents, as previous) http://cvs.php.net/viewcvs.cgi/pear/PEAR_PackageFileManager/PackageFileManager2.php?r1=1.33&r2=1.34&diff_format=u Index: pear/PEAR_PackageFileManager/PackageFileManager2.php diff -u pear/PEAR_PackageFileManager/PackageFileManager2.php:1.33 pear/PEAR_PackageFileManager/PackageFileManager2.php:1.34 --- pear/PEAR_PackageFileManager/PackageFileManager2.php:1.33 Wed Feb 15 04:31:24 2006 +++ pear/PEAR_PackageFileManager/PackageFileManager2.php Sun Feb 26 18:20:06 2006 @@ -14,7 +14,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 2005-2006 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: PackageFileManager2.php,v 1.33 2006/02/15 04:31:24 cellog Exp $ + * @version CVS: $Id: PackageFileManager2.php,v 1.34 2006/02/26 18:20:06 farell Exp $ * @link http://pear.php.net/package/PEAR_PackageFileManager * @since File available since Release 1.6.0 */ @@ -723,7 +723,9 @@ if ($options['cleardependencies']) { $res->clearDeps(); } - $res->clearContents(); + if (!isset($options['clearcontents']) || $options['clearcontents']) { + $res->clearContents(); + } $packagefile = $packagefile->getPackageFile(); } if (!isset($res)) { @@ -1481,7 +1483,9 @@ if ($options['cleardependencies']) { $pf->clearDeps(); } - $pf->clearContents(); + if (!isset($options['clearcontents']) || $options['clearcontents']) { + $pf->clearContents(); + } } return $pf; } else {

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