List Info

Thread: package xml 2.0 and file contents attributes




package xml 2.0 and file contents attributes
user name
2006-08-21 19:22:12
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

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

package xml 2.0 and file contents attributes
user name
2006-08-21 20:14:52
Hello,

On 8/21/06, Laurent Laville <pearlaurent-laville.org>
wrote:


> 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" />

> My question:
> Is it really necessary to have such dupplicate
information ? A reason
> behind this ?

The baseinstalldir does not need to be duplicated if it is 
a child
node from a dir and if the destination dir does not change.
But I do
not see any install-as here 

--Pierre

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )