cvs: pear-core /PEAR/PackageFile v2.php

From: Date: Fri, 28 Mar 2008 19:35:43 +0000
Subject: cvs: pear-core /PEAR/PackageFile v2.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7409@lists.php.net to get a copy of this message
dufuz Fri Mar 28 19:35:43 2008 UTC Modified files: /pear-core/PEAR/PackageFile v2.php Log: Bug #13484 pear package brings up warnings Happened when people did <optional></optional> or same with required, basically empty tags, dealing with that now http://cvs.php.net/viewvc.cgi/pear-core/PEAR/PackageFile/v2.php?r1=1.141&r2=1.142&diff_format=u Index: pear-core/PEAR/PackageFile/v2.php diff -u pear-core/PEAR/PackageFile/v2.php:1.141 pear-core/PEAR/PackageFile/v2.php:1.142 --- pear-core/PEAR/PackageFile/v2.php:1.141 Thu Jan 3 20:26:36 2008 +++ pear-core/PEAR/PackageFile/v2.php Fri Mar 28 19:35:43 2008 @@ -15,7 +15,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2008 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: v2.php,v 1.141 2008/01/03 20:26:36 cellog Exp $ + * @version CVS: $Id: v2.php,v 1.142 2008/03/28 19:35:43 dufuz Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.4.0a1 */ @@ -121,7 +121,7 @@ * * - package name * - channel name - * - dependencies + * - dependencies * @var boolean * @access private */ @@ -1566,7 +1566,7 @@ if (strtolower($dep['name']) == strtolower($package) && $depchannel == $channel) { return true; - } + } } } } @@ -1584,7 +1584,7 @@ if (strtolower($dep['name']) == strtolower($package) && $depchannel == $channel) { return true; - } + } } } } @@ -1644,7 +1644,8 @@ ); foreach (array('required', 'optional') as $type) { $optional = ($type == 'optional') ? 'yes' : 'no'; - if (!isset($this->_packageInfo['dependencies'][$type])) { + if (!isset($this->_packageInfo['dependencies'][$type]) + || empty($this->_packageInfo['dependencies'][$type])) { continue; } foreach ($this->_packageInfo['dependencies'][$type] as $dtype => $deps) {

« previous php.pear.core (#7409) next »