cvs: pear-core /tests/PEAR_PackageFile_Generator_v2/toTgz2 test_fail.phpt /tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles bundle.xml
bundlefail1.xml bundlefail2.xml extbinrelease1.xml extbinrelease2.xml extsrcrelease1.xml extsrcrelease2.xml fakebar-1.9.0.tgz fakebar.xml
fakefoo-1.9.0.tgz fakefoo.xml foo.php invalid-1.9.0.tgz phprelease1.xml phprelease2.xml
/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/sunger foo.dat

From: Date: Sun, 12 Dec 2004 19:31:34 +0000
Subject: cvs: pear-core /tests/PEAR_PackageFile_Generator_v2/toTgz2 test_fail.phpt /tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles bundle.xml
bundlefail1.xml bundlefail2.xml extbinrelease1.xml extbinrelease2.xml extsrcrelease1.xml extsrcrelease2.xml fakebar-1.9.0.tgz fakebar.xml
fakefoo-1.9.0.tgz fakefoo.xml foo.php invalid-1.9.0.tgz phprelease1.xml phprelease2.xml
/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/sunger foo.dat
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-27256@lists.php.net to get a copy of this message
cellog Sun Dec 12 14:31:34 2004 EDT Added files: /pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles bundle.xml bundlefail1.xml bundlefail2.xml extbinrelease1.xml extbinrelease2.xml extsrcrelease1.xml extsrcrelease2.xml fakebar-1.9.0.tgz fakebar.xml fakefoo-1.9.0.tgz fakefoo.xml foo.php invalid-1.9.0.tgz phprelease1.xml phprelease2.xml /pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/sunger foo.dat /pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2 test_fail.phpt Log: new test

http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/bundle.xml?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/bundle.xml +++ pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/bundle.xml <?xml version="1.0"?> <package packagerversion="1.4.0a1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>foobundle</name> <channel>pear.php.net</channel> <summary>foo</summary> <description>foo hi there </description> <lead> <name>person</name> <user>single</user> <email>joe@example.com</email> <active>yes</active> </lead> <date>2004-12-10</date> <time>21:51:09</time> <version> <release>1.2.0a1</release> <api>1.2.0a1</api> </version> <stability> <release>alpha</release> <api>alpha</api> </stability> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>here are the multi-line release notes </notes> <contents> <bundledpackage>fakefoo-1.9.0.tgz</bundledpackage> <bundledpackage>fakebar-1.9.0.tgz</bundledpackage> </contents> <dependencies> <required> <php> <min>4.3.0</min> <max>6.0.0</max> </php> <pearinstaller> <min>1.4.0a1</min> </pearinstaller> <package> <name>Console_Getopt</name> <channel>pear.php.net</channel> <max>1.2</max> <exclude>1.2</exclude> </package> </required> <optional> <extension> <name>xmlrpc</name> <min>1.0</min> </extension> </optional> </dependencies> <bundle/> <changelog> <release> <version> <release>1.3.3</release> <api>1.3.3</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> <release> <version> <release>1.3.2</release> <api>1.3.2</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> </changelog> </package> http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/bundlefail1.xml?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/bundlefail1.xml +++ pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/bundlefail1.xml <?xml version="1.0"?> <package packagerversion="1.4.0a1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>foobundle</name> <channel>pear.php.net</channel> <summary>foo</summary> <description>foo hi there </description> <lead> <name>person</name> <user>single</user> <email>joe@example.com</email> <active>yes</active> </lead> <date>2004-12-10</date> <time>21:51:09</time> <version> <release>1.2.0a1</release> <api>1.2.0a1</api> </version> <stability> <release>alpha</release> <api>alpha</api> </stability> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>here are the multi-line release notes </notes> <contents> <bundledpackage>fakefoo-1.9.0.tgz</bundledpackage> <bundledpackage>fakebar-1.9.0.tgz</bundledpackage> <bundledpackage>nosuchpackage-1.9.0.tgz</bundledpackage> </contents> <dependencies> <required> <php> <min>4.3.0</min> <max>6.0.0</max> </php> <pearinstaller> <min>1.4.0a1</min> </pearinstaller> <package> <name>Console_Getopt</name> <channel>pear.php.net</channel> <max>1.2</max> <exclude>1.2</exclude> </package> </required> <optional> <extension> <name>xmlrpc</name> <min>1.0</min> </extension> </optional> </dependencies> <bundle/> <changelog> <release> <version> <release>1.3.3</release> <api>1.3.3</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> <release> <version> <release>1.3.2</release> <api>1.3.2</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> </changelog> </package> http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/bundlefail2.xml?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/bundlefail2.xml +++ pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/bundlefail2.xml <?xml version="1.0"?> <package packagerversion="1.4.0a1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>foobundle</name> <channel>pear.php.net</channel> <summary>foo</summary> <description>foo hi there </description> <lead> <name>person</name> <user>single</user> <email>joe@example.com</email> <active>yes</active> </lead> <date>2004-12-10</date> <time>21:51:09</time> <version> <release>1.2.0a1</release> <api>1.2.0a1</api> </version> <stability> <release>alpha</release> <api>alpha</api> </stability> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>here are the multi-line release notes </notes> <contents> <bundledpackage>fakefoo-1.9.0.tgz</bundledpackage> <bundledpackage>fakebar-1.9.0.tgz</bundledpackage> <bundledpackage>invalid-1.9.0.tgz</bundledpackage> </contents> <dependencies> <required> <php> <min>4.3.0</min> <max>6.0.0</max> </php> <pearinstaller> <min>1.4.0a1</min> </pearinstaller> <package> <name>Console_Getopt</name> <channel>pear.php.net</channel> <max>1.2</max> <exclude>1.2</exclude> </package> </required> <optional> <extension> <name>xmlrpc</name> <min>1.0</min> </extension> </optional> </dependencies> <bundle/> <changelog> <release> <version> <release>1.3.3</release> <api>1.3.3</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> <release> <version> <release>1.3.2</release> <api>1.3.2</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> </changelog> </package> http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/extbinrelease1.xml?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/extbinrelease1.xml +++ pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/extbinrelease1.xml <?xml version="1.0"?> <package packagerversion="1.4.0a1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>foo</name> <channel>pear.php.net</channel> <summary>foo</summary> <description>foo hi there </description> <lead> <name>person</name> <user>single</user> <email>joe@example.com</email> <active>yes</active> </lead> <date>2004-12-10</date> <time>21:51:09</time> <version> <release>1.2.0a1</release> <api>1.2.0a1</api> </version> <stability> <release>alpha</release> <api>alpha</api> </stability> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>here are the multi-line release notes </notes> <contents> <dir name="/"> <dir name="sunger"> <file baseinstalldir="freeb" md5sum="8332264d2e0e3c3091ebd6d8cee5d3a3" name="foo.dat" role="data"> <tasks:replace from="@pv@" to="version" type="package-info" /> </file> </dir> <!-- //sunger --> <file baseinstalldir="freeb" md5sum="8332264d2e0e3c3091ebd6d8cee5d3a3" name="foo.php" role="ext"> <tasks:replace from="@pv@" to="version" type="package-info" /> </file> </dir> <!-- / --> </contents> <dependencies> <required> <php> <min>4.3.0</min> <max>6.0.0</max> </php> <pearinstaller> <min>1.4.0a1</min> </pearinstaller> <package> <name>Console_Getopt</name> <channel>pear.php.net</channel> <max>1.2</max> <exclude>1.2</exclude> </package> </required> <optional> <extension> <name>xmlrpc</name> <min>1.0</min> </extension> </optional> </dependencies> <providesextension>foo</providesextension> <srcpackage>foo_src</srcpackage> <extbinrelease /> <changelog> <release> <version> <release>1.3.3</release> <api>1.3.3</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> <release> <version> <release>1.3.2</release> <api>1.3.2</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> </changelog> </package> http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/extbinrelease2.xml?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/extbinrelease2.xml +++ pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/extbinrelease2.xml <?xml version="1.0"?> <package packagerversion="1.4.0a1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>foo</name> <uri>http://www.example.com/foo.tgz</uri> <summary>foo</summary> <description>foo hi there </description> <lead> <name>person</name> <user>single</user> <email>joe@example.com</email> <active>yes</active> </lead> <date>2004-12-10</date> <time>21:51:09</time> <version> <release>1.2.0a1</release> <api>1.2.0a1</api> </version> <stability> <release>alpha</release> <api>alpha</api> </stability> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>here are the multi-line release notes </notes> <contents> <dir name="/"> <dir name="sunger"> <file baseinstalldir="freeb" md5sum="8332264d2e0e3c3091ebd6d8cee5d3a3" name="foo.dat" role="data"> <tasks:replace from="@pv@" to="version" type="package-info" /> </file> </dir> <!-- //sunger --> <file baseinstalldir="freeb" md5sum="8332264d2e0e3c3091ebd6d8cee5d3a3" name="foo.php" role="ext"> <tasks:replace from="@pv@" to="version" type="package-info" /> </file> </dir> <!-- / --> </contents> <dependencies> <required> <php> <min>4.3.0</min> <max>6.0.0</max> </php> <pearinstaller> <min>1.4.0a1</min> </pearinstaller> <package> <name>Console_Getopt</name> <channel>pear.php.net</channel> <max>1.2</max> <exclude>1.2</exclude> </package> </required> <optional> <extension> <name>xmlrpc</name> <min>1.0</min> </extension> </optional> </dependencies> <providesextension>foo</providesextension> <srcuri>http://www.example.com/foo_src.tgz</srcuri> <extbinrelease /> <changelog> <release> <version> <release>1.3.3</release> <api>1.3.3</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> <release> <version> <release>1.3.2</release> <api>1.3.2</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> </changelog> </package> http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/extsrcrelease1.xml?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/extsrcrelease1.xml +++ pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/extsrcrelease1.xml <?xml version="1.0"?> <package packagerversion="1.4.0a1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>foo</name> <channel>pear.php.net</channel> <summary>foo</summary> <description>foo hi there </description> <lead> <name>person</name> <user>single</user> <email>joe@example.com</email> <active>yes</active> </lead> <date>2004-12-10</date> <time>21:51:09</time> <version> <release>1.2.0a1</release> <api>1.2.0a1</api> </version> <stability> <release>alpha</release> <api>alpha</api> </stability> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>here are the multi-line release notes </notes> <contents> <dir name="/"> <dir name="sunger"> <file baseinstalldir="freeb" md5sum="8332264d2e0e3c3091ebd6d8cee5d3a3" name="foo.dat" role="data"> <tasks:replace from="@pv@" to="version" type="package-info" /> </file> </dir> <!-- //sunger --> <file baseinstalldir="freeb" md5sum="8332264d2e0e3c3091ebd6d8cee5d3a3" name="foo.php" role="src"> <tasks:replace from="@pv@" to="version" type="package-info" /> </file> </dir> <!-- / --> </contents> <dependencies> <required> <php> <min>4.3.0</min> <max>6.0.0</max> </php> <pearinstaller> <min>1.4.0a1</min> </pearinstaller> <package> <name>Console_Getopt</name> <channel>pear.php.net</channel> <max>1.2</max> <exclude>1.2</exclude> </package> </required> <optional> <extension> <name>xmlrpc</name> <min>1.0</min> </extension> </optional> </dependencies> <providesextension>foo</providesextension> <extsrcrelease> <configureoption name="one" default="hello" prompt="boo" /> </extsrcrelease> <changelog> <release> <version> <release>1.3.3</release> <api>1.3.3</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> <release> <version> <release>1.3.2</release> <api>1.3.2</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> </changelog> </package> http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/extsrcrelease2.xml?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/extsrcrelease2.xml +++ pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/extsrcrelease2.xml <?xml version="1.0"?> <package packagerversion="1.4.0a1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>foo</name> <uri>http://www.example.com/foo.tgz</uri> <summary>foo</summary> <description>foo hi there </description> <lead> <name>person</name> <user>single</user> <email>joe@example.com</email> <active>yes</active> </lead> <date>2004-12-10</date> <time>21:51:09</time> <version> <release>1.2.0a1</release> <api>1.2.0a1</api> </version> <stability> <release>alpha</release> <api>alpha</api> </stability> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>here are the multi-line release notes </notes> <contents> <dir name="/"> <dir name="sunger"> <file baseinstalldir="freeb" md5sum="8332264d2e0e3c3091ebd6d8cee5d3a3" name="foo.dat" role="data"> <tasks:replace from="@pv@" to="version" type="package-info" /> </file> </dir> <!-- //sunger --> <file baseinstalldir="freeb" md5sum="8332264d2e0e3c3091ebd6d8cee5d3a3" name="foo.php" role="src"> <tasks:replace from="@pv@" to="version" type="package-info" /> </file> </dir> <!-- / --> </contents> <dependencies> <required> <php> <min>4.3.0</min> <max>6.0.0</max> </php> <pearinstaller> <min>1.4.0a1</min> </pearinstaller> <package> <name>Console_Getopt</name> <channel>pear.php.net</channel> <max>1.2</max> <exclude>1.2</exclude> </package> </required> <optional> <extension> <name>xmlrpc</name> <min>1.0</min> </extension> </optional> </dependencies> <providesextension>foo</providesextension> <extsrcrelease> <configureoption name="one" default="hello" prompt="boo" /> </extsrcrelease> <changelog> <release> <version> <release>1.3.3</release> <api>1.3.3</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> <release> <version> <release>1.3.2</release> <api>1.3.2</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> </changelog> </package> http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/fakebar.xml?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/fakebar.xml +++ pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/fakebar.xml <?xml version="1.0"?> <package packagerversion="1.4.0a1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>fakebar</name> <channel>pear.php.net</channel> <summary>foo</summary> <description>foo hi there </description> <lead> <name>person</name> <user>single</user> <email>joe@example.com</email> <active>yes</active> </lead> <date>2004-12-10</date> <time>21:39:43</time> <version> <release>1.9.0</release> <api>1.9.0</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>here are the multi-line release notes </notes> <contents> <dir name="/"> <dir name="sunger"> <file baseinstalldir="freeb" md5sum="8332264d2e0e3c3091ebd6d8cee5d3a3" name="foo.dat" role="data"> <tasks:replace from="@pv@" to="version" type="package-info" /> </file> </dir> <!-- //sunger --> <file baseinstalldir="freeb" md5sum="8332264d2e0e3c3091ebd6d8cee5d3a3" name="foo.php" role="php"> <tasks:replace from="@pv@" to="version" type="package-info" /> </file> </dir> <!-- / --> </contents> <dependencies> <required> <php> <min>4.3.0</min> <max>6.0.0</max> </php> <pearinstaller> <min>1.4.0a1</min> </pearinstaller> <package> <name>Console_Getopt</name> <channel>pear.php.net</channel> <max>1.2</max> <exclude>1.2</exclude> </package> </required> <optional> <extension> <name>xmlrpc</name> <min>1.0</min> </extension> </optional> </dependencies> <phprelease> <installconditions> <os> <name>*</name> </os> </installconditions> <filelist> <install as="merbl.dat" name="sunger/foo.dat" /> <install as="merbl.php" name="foo.php" /> </filelist> </phprelease> <changelog> <release> <version> <release>1.3.3</release> <api>1.3.3</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> <release> <version> <release>1.3.2</release> <api>1.3.2</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> </changelog> </package> http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/fakefoo.xml?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/fakefoo.xml +++ pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/fakefoo.xml <?xml version="1.0"?> <package packagerversion="1.4.0a1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>fakefoo</name> <channel>pear.php.net</channel> <summary>foo</summary> <description>foo hi there </description> <lead> <name>person</name> <user>single</user> <email>joe@example.com</email> <active>yes</active> </lead> <date>2004-12-10</date> <time>21:39:43</time> <version> <release>1.9.0</release> <api>1.9.0</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>here are the multi-line release notes </notes> <contents> <dir name="/"> <dir name="sunger"> <file baseinstalldir="freeb" md5sum="8332264d2e0e3c3091ebd6d8cee5d3a3" name="foo.dat" role="data"> <tasks:replace from="@pv@" to="version" type="package-info" /> </file> </dir> <!-- //sunger --> <file baseinstalldir="freeb" md5sum="8332264d2e0e3c3091ebd6d8cee5d3a3" name="foo.php" role="php"> <tasks:replace from="@pv@" to="version" type="package-info" /> </file> </dir> <!-- / --> </contents> <dependencies> <required> <php> <min>4.3.0</min> <max>6.0.0</max> </php> <pearinstaller> <min>1.4.0a1</min> </pearinstaller> <package> <name>Console_Getopt</name> <channel>pear.php.net</channel> <max>1.2</max> <exclude>1.2</exclude> </package> </required> <optional> <extension> <name>xmlrpc</name> <min>1.0</min> </extension> </optional> </dependencies> <phprelease> <installconditions> <os> <name>*</name> </os> </installconditions> <filelist> <install as="merbl.dat" name="sunger/foo.dat" /> <install as="merbl.php" name="foo.php" /> </filelist> </phprelease> <changelog> <release> <version> <release>1.3.3</release> <api>1.3.3</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> <release> <version> <release>1.3.2</release> <api>1.3.2</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> </changelog> </package> http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/foo.php?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/foo.php +++ pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/foo.php <?php ?> http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/phprelease1.xml?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/phprelease1.xml +++ pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/phprelease1.xml <?xml version="1.0"?> <package packagerversion="1.4.0a1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>foo</name> <channel>pear.php.net</channel> <summary>foo</summary> <description>foo hi there </description> <lead> <name>person</name> <user>single</user> <email>joe@example.com</email> <active>yes</active> </lead> <date>2004-12-10</date> <time>21:39:43</time> <version> <release>1.2.0a1</release> <api>1.2.0a1</api> </version> <stability> <release>alpha</release> <api>alpha</api> </stability> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>here are the multi-line release notes </notes> <contents> <dir name="/"> <dir name="sunger"> <file baseinstalldir="freeb" md5sum="8332264d2e0e3c3091ebd6d8cee5d3a3" name="foo.dat" role="data"> <tasks:replace from="@pv@" to="version" type="package-info" /> </file> </dir> <!-- //sunger --> <file baseinstalldir="freeb" md5sum="8332264d2e0e3c3091ebd6d8cee5d3a3" name="foo.php" role="php"> <tasks:replace from="@pv@" to="version" type="package-info" /> </file> </dir> <!-- / --> </contents> <dependencies> <required> <php> <min>4.3.0</min> <max>6.0.0</max> </php> <pearinstaller> <min>1.4.0a1</min> </pearinstaller> <package> <name>Console_Getopt</name> <channel>pear.php.net</channel> <max>1.2</max> <exclude>1.2</exclude> </package> </required> <optional> <extension> <name>xmlrpc</name> <min>1.0</min> </extension> </optional> </dependencies> <phprelease> <installconditions> <os> <name>*</name> </os> </installconditions> <filelist> <install as="merbl.dat" name="sunger/foo.dat" /> <install as="merbl.php" name="foo.php" /> </filelist> </phprelease> <changelog> <release> <version> <release>1.3.3</release> <api>1.3.3</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> <release> <version> <release>1.3.2</release> <api>1.3.2</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> </changelog> </package> http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/phprelease2.xml?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/phprelease2.xml +++ pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/phprelease2.xml <?xml version="1.0"?> <package packagerversion="1.4.0a1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>foo</name> <uri>http://www.example.com/foo.tgz</uri> <summary>foo</summary> <description>foo hi there </description> <lead> <name>person</name> <user>single</user> <email>joe@example.com</email> <active>yes</active> </lead> <date>2004-12-10</date> <time>21:39:43</time> <version> <release>1.2.0a1</release> <api>1.2.0a1</api> </version> <stability> <release>alpha</release> <api>alpha</api> </stability> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>here are the multi-line release notes </notes> <contents> <dir name="/"> <dir name="sunger"> <file baseinstalldir="freeb" md5sum="8332264d2e0e3c3091ebd6d8cee5d3a3" name="foo.dat" role="data"> <tasks:replace from="@pv@" to="version" type="package-info" /> </file> </dir> <!-- //sunger --> <file baseinstalldir="freeb" md5sum="8332264d2e0e3c3091ebd6d8cee5d3a3" name="foo.php" role="php"> <tasks:replace from="@pv@" to="version" type="package-info" /> </file> </dir> <!-- / --> </contents> <dependencies> <required> <php> <min>4.3.0</min> <max>6.0.0</max> </php> <pearinstaller> <min>1.4.0a1</min> </pearinstaller> <package> <name>Console_Getopt</name> <channel>pear.php.net</channel> <max>1.2</max> <exclude>1.2</exclude> </package> </required> <optional> <extension> <name>xmlrpc</name> <min>1.0</min> </extension> </optional> </dependencies> <phprelease> <installconditions> <os> <name>*</name> </os> </installconditions> <filelist> <install as="merbl.dat" name="sunger/foo.dat" /> <install as="merbl.php" name="foo.php" /> </filelist> </phprelease> <changelog> <release> <version> <release>1.3.3</release> <api>1.3.3</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> <release> <version> <release>1.3.2</release> <api>1.3.2</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2004-10-28</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes>Installer: * fix Bug #1186 raise a notice error on PEAR::Common $_packageName * fix Bug #1249 display the right state when using --force option * fix Bug #2189 upgrade-all stops if dependancy fails * fix Bug #1637 The use of interface causes warnings when packaging with PEAR * fix Bug #1420 Parser bug for T_DOUBLE_COLON * fix Request #2220 pear5 build fails on dual php4/php5 system * fix Bug #1163 pear makerpm fails with packages that supply role=&quot;doc&quot; Other: * add PEAR_Exception class for PHP5 users * fix critical problem in package.xml for linux in 1.3.2 * fix staticPopCallback() in PEAR_ErrorStack * fix warning in PEAR_Registry for windows 98 users </notes> </release> </changelog> </package> http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/sunger/foo.dat?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/sunger/foo.dat +++ pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/packagefiles/sunger/foo.dat <?php ?> http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/test_fail.phpt?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/test_fail.phpt +++ pear-core/tests/PEAR_PackageFile_Generator_v2/toTgz2/test_fail.phpt --TEST-- PEAR_PackageFile_Generator_v2->toPackageFile() failure --SKIPIF-- <?php if (!getenv('PHP_PEAR_RUNTESTS')) { echo 'skip'; } ?> --FILE-- <?php error_reporting(E_ALL); require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $pf = new PEAR_PackageFile_v2; $pf->setConfig($config); chdir($temp_path); require_once 'PEAR/Packager.php'; $packager = &new PEAR_Packager; $generator = &$pf->getDefaultGenerator(); $pf1 = null; $e = $generator->toTgz2($packager, $pf1); $phpunit->assertErrors(array( array('package' => 'PEAR_PackageFile_v2', 'message' => 'package.xml <package> tag has no version attribute, or version is not 2.0'), array('package' => 'PEAR_PackageFile_v2', 'message' => 'Invalid tag order in <package>, found <> expected one of "name"'), array('package' => 'PEAR_Error', 'message' => 'PEAR_Packagefile_v2::toTgz: invalid package.xml'), ), 'bad'); $phpunit->assertIsa('PEAR_Error', $e, 'error'); $pf = &$parser->parse('<?xml version="1.0" encoding="ISO-8859-1" ?> <package version="2.0" packagerversion="' . $generator->getPackagerVersion() . '"> <name>foo</name> <channel>pear.php.net</channel> <summary>foo</summary> <description>foo hi there </description> <lead> <name>person</name> <user>single</user> <email>joe@example.com</email> <active>yes</active> </lead> <date>2004-12-25</date> <version> <release>1.2.0</release> <api>1.2.0</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <license>PHP License</license> <notes>here are the multi-line release notes </notes> <contents> <dir name="\"> <file role="php" name="foo.php"/> </dir> </contents> <dependencies> <required> <php> <min>4.0.0</min> <max>6.0.0</max> </php> <pearinstaller> <min>1.4.0a1</min> </pearinstaller> </required> </dependencies> <phprelease/> </package> ', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'packagefiles' . DIRECTORY_SEPARATOR . 'boo.xml'); $generator = &$pf->getDefaultGenerator(); touch ($temp_path . DIRECTORY_SEPARATOR . 'floub'); $e = $generator->toTgz2($packager, $pf1, true, $temp_path . DIRECTORY_SEPARATOR . 'floub'); $phpunit->assertErrors(array( array('package' => 'PEAR_Error', 'message' => 'PEAR_Packagefile_v2::toTgz: "' . $temp_path . DIRECTORY_SEPARATOR . 'floub" could not be created'), ), 'bad 1'); $phpunit->assertIsa('PEAR_Error', $e, 'error 1'); unlink($temp_path . DIRECTORY_SEPARATOR . 'floub'); mkdir($temp_path . DIRECTORY_SEPARATOR . 'floub'); mkdir($temp_path . DIRECTORY_SEPARATOR . 'floub' . DIRECTORY_SEPARATOR . 'package.xml'); $e = $generator->toTgz2($packager, $pf1, true, $temp_path . DIRECTORY_SEPARATOR . 'floub'); $phpunit->assertErrors(array( array('package' => 'PEAR_Error', 'message' => 'PEAR_Packagefile_v2::toTgz: unable to save package.xml as "' . $temp_path . DIRECTORY_SEPARATOR . 'floub' . DIRECTORY_SEPARATOR . 'package.xml"'), ), 'bad 2'); $phpunit->assertIsa('PEAR_Error', $e, 'error 2'); rmdir($temp_path . DIRECTORY_SEPARATOR . 'floub' . DIRECTORY_SEPARATOR . 'package.xml'); mkdir($temp_path . DIRECTORY_SEPARATOR . 'floub' . DIRECTORY_SEPARATOR . 'foo-1.2.0.tgz'); chdir($temp_path . DIRECTORY_SEPARATOR . 'floub'); $e = $generator->toTgz2($packager, $pf1, true, $temp_path . DIRECTORY_SEPARATOR . 'floub'); $phpunit->assertErrors(array( array('package' => 'PEAR_Error', 'message' => 'PEAR_Packagefile_v2::toTgz: cannot create tgz file "' . $temp_path . DIRECTORY_SEPARATOR . 'floub' . DIRECTORY_SEPARATOR . 'foo-1.2.0.tgz"'), ), 'bad 3'); $phpunit->assertIsa('PEAR_Error', $e, 'error 3'); rmdir($temp_path . DIRECTORY_SEPARATOR . 'floub' . DIRECTORY_SEPARATOR . 'foo-1.2.0.tgz'); chdir($temp_path); $phpunit->assertEquals(array(array(1, 'Analyzing foo.php')), $fakelog->getLog(), 'log packaging'); $pf = &$parser->parse(implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'packagefiles' . DIRECTORY_SEPARATOR . 'bundlefail1.xml')), dirname(__FILE__) . DIRECTORY_SEPARATOR . 'packagefiles' . DIRECTORY_SEPARATOR . 'bundlefail1.xml'); $generator = &$pf->getDefaultGenerator(); $e = $generator->toTgz2($packager, $pf1); $phpunit->assertErrors(array( array('package' => 'PEAR_PackageFile_v2', 'message' => 'cannot analyze file "' . dirname(__FILE__) . DIRECTORY_SEPARATOR . 'packagefiles' . DIRECTORY_SEPARATOR . 'nosuchpackage-1.9.0.tgz", file not found'), array('package' => 'PEAR_Error', 'message' => 'File does not exist: nosuchpackage-1.9.0.tgz'), ), 'bad bundle 1'); $phpunit->assertEquals(array ( 0 => array ( 0 => 1, 1 => 'Analyzing bundled package fakefoo-1.9.0.tgz', ), 1 => array ( 0 => 1, 1 => 'Analyzing bundled package fakebar-1.9.0.tgz', ), ), $fakelog->getLog(), 'bad bundle 1 log'); $pf = &$parser->parse(implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'packagefiles' . DIRECTORY_SEPARATOR . 'bundlefail2.xml')), dirname(__FILE__) . DIRECTORY_SEPARATOR . 'packagefiles' . DIRECTORY_SEPARATOR . 'bundlefail2.xml'); $generator = &$pf->getDefaultGenerator(); $e = $generator->toPackageFile($temp_path, PEAR_VALIDATE_PACKAGING, 'tub.xml'); $phpunit->assertErrors(array( array('package' => 'PEAR_Error', 'message' => 'PEAR_Packagefile_v2::toPackageFile: invalid package.xml'), ), 'bad bundle 1'); $phpunit->assertEquals(array ( 0 => array ( 0 => 1, 1 => 'Analyzing bundled package fakefoo-1.9.0.tgz', ), 1 => array ( 0 => 1, 1 => 'Analyzing bundled package fakebar-1.9.0.tgz', ), 2 => array ( 0 => 1, 1 => 'Analyzing bundled package invalid-1.9.0.tgz', ), 3 => array ( 0 => 0, 1 => 'ERROR: package invalid-1.9.0.tgz is not a valid package', ), ), $fakelog->getLog(), 'bad bundle 2 log'); echo 'tests done'; ?> --EXPECT-- tests done
« previous php.pear.cvs (#27256) next »