cvs: pear /PEAR_PackageFileManager_Frontend Frontend.php
| From: | Laurent Laville | Date: | Wed, 30 Aug 2006 16:38:04 +0000 |
| Subject: | cvs: pear /PEAR_PackageFileManager_Frontend Frontend.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-41921@lists.php.net to get a copy of this message | ||
farell Wed Aug 30 16:38:04 2006 UTC
Modified files:
/pear/PEAR_PackageFileManager_Frontend Frontend.php
Log:
fix package xml 2.0 generation problem when add platform condition
http://cvs.php.net/viewvc.cgi/pear/PEAR_PackageFileManager_Frontend/Frontend.php?r1=1.18&r2=1.19&diff_format=u
Index: pear/PEAR_PackageFileManager_Frontend/Frontend.php
diff -u pear/PEAR_PackageFileManager_Frontend/Frontend.php:1.18
pear/PEAR_PackageFileManager_Frontend/Frontend.php:1.19
--- pear/PEAR_PackageFileManager_Frontend/Frontend.php:1.18 Wed Aug 23 16:27:18 2006
+++ pear/PEAR_PackageFileManager_Frontend/Frontend.php Wed Aug 30 16:38:04 2006
@@ -15,7 +15,7 @@
* @author Laurent Laville <pear@laurent-laville.org>
* @copyright 2005-2006 Laurent Laville
* @license http://www.php.net/license/3_01.txt PHP License 3.01
- * @version CVS: $Id: Frontend.php,v 1.18 2006/08/23 16:27:18 farell Exp $
+ * @version CVS: $Id: Frontend.php,v 1.19 2006/08/30 16:38:04 farell Exp $
* @since File available since Release 0.1.0
*/
@@ -1515,15 +1515,14 @@
}
if (count($win)) {
$pkg->setOSInstallCondition('windows');
- foreach($win as $file) {
- $pkg->addIgnoreToRelease($file);
- }
- }
- if (count($nix)) {
- if (count($win)) {
- $pkg->addRelease();
+ if (count($nix)) {
+ foreach($nix as $file) {
+ $pkg->addIgnoreToRelease($file);
+ }
}
- foreach($nix as $file) {
+
+ $pkg->addRelease();
+ foreach($win as $file) {
$pkg->addIgnoreToRelease($file);
}
}