package.xml v2.0 questions

From: Date: Thu, 16 Nov 2006 18:30:02 +0000
Subject: package.xml v2.0 questions
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-44950@lists.php.net to get a copy of this message
The package.xml example given at <http://pear.php.net/manual/en/guide.developers.package2.php> uses the following for its file tag: <file name="Dependency2.php" role="php">
    <tasks:replace from="@PEAR-VER@" to="version" type="package-info"/>
</file> In contrast, PEAR 1.4.11 <http://pear.php.net/package/PEAR> uses this: <file md5sum="b309a1eb31b2826cd1cec229fb352eb0" name="OS/Guess.php" role="php"> <tasks:replace from="@package_version@" to="version" type="package-info" /> </file> Which one is correct? Is the md5sum attribute needed or not? Also, the first example seems to specify subdirs via nested dir tags - not by having their path in the name attribute as the second one does. eg. The first one would seem to suggest that this is the way to do it: <dir name="/"> <dir name="OS">
     <file name="Guess.php" ...>
     ...
     </file>
</dir> </dir> ...whereas the latter would seem to suggest this: <dir name="/"> <file name="OS/Guess.php" ...> ... </file> </dir> Also, I note that PEAR includes both v1 and v2 of package.xml (albeit with different names). Any ideas as to why?

« previous php.pear.dev (#44950) next »