cvs: pear-core / package-PEAR.xml package2.xml /PEAR/PackageFile/v2 Validator.php
| From: | Greg Beaver | Date: | Sun, 12 Nov 2006 16:59:52 +0000 |
| Subject: | cvs: pear-core / package-PEAR.xml package2.xml /PEAR/PackageFile/v2 Validator.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-5178@lists.php.net to get a copy of this message | ||
cellog Sun Nov 12 16:59:52 2006 UTC
Modified files:
/pear-core/PEAR/PackageFile/v2 Validator.php
/pear-core package-PEAR.xml package2.xml
Log:
* fix Bug #9307: Validator generates warning on empty <contents> tag
http://cvs.php.net/viewvc.cgi/pear-core/PEAR/PackageFile/v2/Validator.php?r1=1.94&r2=1.95&diff_format=u
Index: pear-core/PEAR/PackageFile/v2/Validator.php
diff -u pear-core/PEAR/PackageFile/v2/Validator.php:1.94
pear-core/PEAR/PackageFile/v2/Validator.php:1.95
--- pear-core/PEAR/PackageFile/v2/Validator.php:1.94 Tue Oct 31 02:54:41 2006
+++ pear-core/PEAR/PackageFile/v2/Validator.php Sun Nov 12 16:59:52 2006
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: Validator.php,v 1.94 2006/10/31 02:54:41 cellog Exp $
+// $Id: Validator.php,v 1.95 2006/11/12 16:59:52 cellog Exp $
/**
* Private validation class used by PEAR_PackageFile_v2 - do not use directly, its
* sole purpose is to split up the PEAR/PackageFile/v2.php file to make it smaller
@@ -1728,6 +1728,9 @@
$log = isset($this->_pf->_logger) ? array(&$this->_pf->_logger,
'log') :
array(&$common, 'log');
$info = $this->_pf->getContents();
+ if (!$info) {
+ $this->_tagCannotBeEmpty('contents');
+ }
$info = $info['dir']['file'];
if (isset($info['attribs'])) {
$info = array($info);
http://cvs.php.net/viewvc.cgi/pear-core/package-PEAR.xml?r1=1.401&r2=1.402&diff_format=u
Index: pear-core/package-PEAR.xml
diff -u pear-core/package-PEAR.xml:1.401 pear-core/package-PEAR.xml:1.402
--- pear-core/package-PEAR.xml:1.401 Sun Nov 12 05:02:41 2006
+++ pear-core/package-PEAR.xml Sun Nov 12 16:59:52 2006
@@ -93,6 +93,7 @@
* fix Bug #9206: PEAR package info is not retrieved correctly for package
with single release
* fix Bug #9208: Typo error on abstract PEAR_Task_Common::validXml() method
+ * fix Bug #9307: Validator generates warning on empty <contents> tag
* implement Request #8827: add a yesno type handling for post-install scripts
</notes>
<provides type="class" name="OS_Guess"/>
http://cvs.php.net/viewvc.cgi/pear-core/package2.xml?r1=1.297&r2=1.298&diff_format=u
Index: pear-core/package2.xml
diff -u pear-core/package2.xml:1.297 pear-core/package2.xml:1.298
--- pear-core/package2.xml:1.297 Sun Nov 12 05:02:41 2006
+++ pear-core/package2.xml Sun Nov 12 16:59:52 2006
@@ -98,6 +98,7 @@
* fix Bug #9206: PEAR package info is not retrieved correctly for package
with single release
* fix Bug #9208: Typo error on abstract PEAR_Task_Common::validXml() method
+ * fix Bug #9307: Validator generates warning on empty <contents> tag
* implement Request #8827: add a yesno type handling for post-install scripts
</notes>
<contents>