cvs: pear /PEAR_PackageFileManager PackageFileManager2.php
| From: | Laurent Laville | Date: | Sat, 19 Aug 2006 13:32:49 +0000 |
| Subject: | cvs: pear /PEAR_PackageFileManager PackageFileManager2.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-41696@lists.php.net to get a copy of this message | ||
farell Sat Aug 19 13:32:49 2006 UTC
Modified files:
/pear/PEAR_PackageFileManager PackageFileManager2.php
Log:
- package.xml and package2.xml are now ignore by default ; no need to include them in options
- bugfixe on addIgnore() function; allow now to keep previous content when an array is given as
parameter
http://cvs.php.net/viewvc.cgi/pear/PEAR_PackageFileManager/PackageFileManager2.php?r1=1.42&r2=1.43&diff_format=u
Index: pear/PEAR_PackageFileManager/PackageFileManager2.php
diff -u pear/PEAR_PackageFileManager/PackageFileManager2.php:1.42
pear/PEAR_PackageFileManager/PackageFileManager2.php:1.43
--- pear/PEAR_PackageFileManager/PackageFileManager2.php:1.42 Tue Aug 15 18:56:49 2006
+++ pear/PEAR_PackageFileManager/PackageFileManager2.php Sat Aug 19 13:32:49 2006
@@ -14,7 +14,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 2005-2006 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
- * @version CVS: $Id: PackageFileManager2.php,v 1.42 2006/08/15 18:56:49 farell Exp $
+ * @version CVS: $Id: PackageFileManager2.php,v 1.43 2006/08/19 13:32:49 farell Exp $
* @link http://pear.php.net/package/PEAR_PackageFileManager
* @since File available since Release 1.6.0
*/
@@ -373,7 +373,11 @@
$this->_options['ignore'] = array();
}
if (is_array($ignore)) {
- $this->_options['ignore'] = $ignore;
+ foreach ($ignore as $fn) {
+ if (is_string($fn)) {
+ $this->_options['ignore'][] = $fn;
+ }
+ }
return;
}
$this->_options['ignore'][] = $ignore;
@@ -1238,6 +1242,7 @@
*/
function generateContents()
{
+ $this->addIgnore(array('package.xml', 'package2.xml'));
$options = $this->_options;
if (count($this->_subpackages)) {
if (!is_array($options['ignore'])) {