package xml 2.0 and file contents attributes
| From: | Laurent Laville | Date: | Mon, 21 Aug 2006 19:22:12 +0000 |
| Subject: | package xml 2.0 and file contents attributes | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-43752@lists.php.net to get a copy of this message | ||
Hello,
I suppose this question is for Greg, but perharps someone else know the reason. Feel free to reply !
While i've implemented the installation name condition, PEAR_PackageFile_v2_rw::addInstallAs(), on my PFM2 frontend few minutes ago, i've noticed on package xml 2.0 result :
(BTW, it's also valuable with other tools to make package)
1. without addInstallAs condition
a package xml 2.0 is shown as
<contents>
<dir baseinstalldir="PhpDocumentor" name="/">
<file name="docbuilder/images/rc-gui-install-24.png" role="data" />
...
</dir>
</contents>
2. WITH addInstallAs condition specified
a package xml 2.0 is built with baseinstalldir attribute on each <file> tag while it is already defined on <dir> tag
<contents>
<dir baseinstalldir="PhpDocumentor" name="/">
<file baseinstalldir="PhpDocumentor" name="docbuilder/images/rc-gui-install-24.png" role="data" />
...
</dir>
</contents>
My question:
Is it really necessary to have such dupplicate information ? A reason behind this ?
Thanks in advance for all answers
Laurent