From: Greg Beaver Date: Sat, 1 Nov 2003 03:31:52 +0000 (+0000) Subject: fix bug found by unit test X-Git-Tag: php-5.0.0b3RC1~800 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48bca6444453fe1f85b51ec1e601536741809919;p=php fix bug found by unit test --- diff --git a/pear/PEAR/Dependency.php b/pear/PEAR/Dependency.php index cd62573841..af85f97926 100644 --- a/pear/PEAR/Dependency.php +++ b/pear/PEAR/Dependency.php @@ -201,6 +201,9 @@ class PEAR_Dependency } foreach ($deps as $dep) { if ($dep['type'] == 'pkg' && strcasecmp($dep['name'], $package) == 0) { + if ($dep['rel'] == 'ne') { + continue; + } if (isset($dep['optional']) && $dep['optional'] == 'yes') { $warning .= "\nWarning: Package '$pkg' optionally depends on '$package'"; } else {