Edit report at http://pear.php.net/bugs/bug.php?id=15534&edit=1
ID: 15534
Updated by: [email protected]
Reported By: ohlesbeauxjours at yahoo dot fr
Summary: Multiple phprelease not handled correctly
Status: Open
Type: Bug
-Package: PEAR_PackageFileManager
+Package: PEAR_PackageFileManager2
Operating System: Win
Package Version: 1.6.3
PHP Version: 5.2.8
Roadmap Versions:
New Comment:
-Package: PEAR_PackageFileManager
+Package: PEAR_PackageFileManager2
Previous Comments:
------------------------------------------------------------------------
[2009-01-07 07:31:58] baptiste
Description:
------------
Have a look at the code below.
PFM complains that it is not allowed to have both an "ignore" and an
"install" task for the file "scripts/phpuml.bat".
Buf if you look carefully the code, you will see that those two tasks
belong to distinct phpreleases, so it should not raise an error, IMO.
<phprelease>
<installconditions>
<os>
<name>windows</name>
</os>
</installconditions>
<filelist>
<install as="phpuml" name="scripts/phpuml" />
<install as="phpuml.bat" name="scripts/phpuml.bat" />
</filelist>
</phprelease>
<phprelease>
<filelist>
<install as="phpuml" name="scripts/phpuml" />
<ignore name="scripts/phpuml.bat" />
</filelist>
</phprelease>
Test script:
---------------
Irrelevant
Expected result:
----------------
Used along with PFM_Cli, that bug is all the more tricky, as no message
is printed when you select "14 - Save and Quit", on updating a
package.xml that contains such a double <phprelease>.
I have noticed that something went wrong only because all the
modifications that I had done in PFM had been lost, because of that bug.
------------------------------------------------------------------------