cvs: pear /PEAR_PackageFileManager/examples updatepackage.php

From: Date: Fri, 06 Oct 2006 12:13:40 +0000
Subject: cvs: pear /PEAR_PackageFileManager/examples updatepackage.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42433@lists.php.net to get a copy of this message
farell Fri Oct 6 12:13:40 2006 UTC Modified files: /pear/PEAR_PackageFileManager/examples updatepackage.php Log: - removed support of package xml 1.0 generation - introduces "clearcontents" option facility to import all previous tasks files (that include postinstallscript, replace, eol) and roles files exceptions. http://cvs.php.net/viewvc.cgi/pear/PEAR_PackageFileManager/examples/updatepackage.php?r1=1.1&r2=1.2&diff_format=u Index: pear/PEAR_PackageFileManager/examples/updatepackage.php diff -u pear/PEAR_PackageFileManager/examples/updatepackage.php:1.1 pear/PEAR_PackageFileManager/examples/updatepackage.php:1.2 --- pear/PEAR_PackageFileManager/examples/updatepackage.php:1.1 Tue Aug 15 18:54:57 2006 +++ pear/PEAR_PackageFileManager/examples/updatepackage.php Fri Oct 6 12:13:40 2006 @@ -14,7 +14,7 @@ * @author Laurent Laville <pear@laurent-laville.org> * @copyright 2006 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version CVS: $Id: updatepackage.php,v 1.1 2006/08/15 18:54:57 farell Exp $ + * @version CVS: $Id: updatepackage.php,v 1.2 2006/10/06 12:13:40 farell Exp $ * @link http://pear.php.net/package/PEAR_PackageFileManager * @since File available since Release 1.6.0 * @ignore @@ -30,6 +30,8 @@ 'baseinstalldir' => 'HTML', 'outputdirectory' => 'c:/php/pear', 'simpleoutput' => true, + 'clearcontents' => false, // import also tasks, and roles files exceptions + // required PEAR_PackageFileManager 1.6.0b5 or better 'changelogoldtonew' => false ); @@ -47,14 +49,9 @@ //$p2->setPhpDep('4.2.0'); //$p2->setPearinstallerDep('1.4.3'); -// get a compatible version 1.0 of package xml -$pkg = &$p2->exportCompatiblePackageFile1(); - if (isset($_GET['make']) || (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make')) { - $pkg->writePackageFile(); $p2->writePackageFile(); } else { - $pkg->debugPackageFile(); $p2->debugPackageFile(); } ?> \ No newline at end of file

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