Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.15

Request #1891 Possibility to negate platforms
Submitted: 2004-07-16 13:37 UTC
From: mike Assigned: cellog
Status: Closed Package: PEAR
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 18 + 5 = ?

 
 [2004-07-16 13:37 UTC] mike
Description: ------------ This patch (against current CVS) enbales negation of platforms in the package.xml by specifying sth like: <file platform="!windows" .../> http://dev.iworks.at/PEAR/patches/Installer-negate_platform.patch.txt Often one wants to exclude a certain platform, escpecially windows. Thanks

Comments

 [2004-10-17 20:53 UTC] cellog
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. this is implemented for package.xml version 2 in <contents>: <file name="blah.php" role="php"/> then later on in package.xml: <phprelease> <installconditions> <os> <name>windows</name> <conflicts/> </os> </installconditions> <ignore file="blah.php"/> </phprelease> you can also prevent the whole package from being installed on windows <dependencies> <required> <php> <min>4.2.0</min> <max>6.0.0</max> </php> <pearinstaller> <min>1.4.0dev13</min> </pearinstaller> <os> <name>windows</name> <conflicts/> </os> </required> </dependencies> This system also allows even more fine-grained control of where your package works through the <arch> dependency, which validates based on phpuname() using OS_Guess Greg
 [2004-10-22 23:04 UTC] cellog
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. just to let you know, I decided this is a good idea, and implemented it in CVS.