cvs: pear-core /PEAR/Command Registry.php

From: Date: Thu, 18 Aug 2005 11:57:51 +0000
Subject: cvs: pear-core /PEAR/Command Registry.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-3634@lists.php.net to get a copy of this message
cellog Thu Aug 18 07:57:51 2005 EDT Modified files: /pear-core/PEAR/Command Registry.php Log: fix Bug #5132: pear info Blah.tgz reports optional deps as required http://cvs.php.net/diff.php/pear-core/PEAR/Command/Registry.php?r1=1.63&r2=1.64&ty=u Index: pear-core/PEAR/Command/Registry.php diff -u pear-core/PEAR/Command/Registry.php:1.63 pear-core/PEAR/Command/Registry.php:1.64 --- pear-core/PEAR/Command/Registry.php:1.63 Sun Mar 20 20:54:48 2005 +++ pear-core/PEAR/Command/Registry.php Thu Aug 18 07:57:50 2005 @@ -16,7 +16,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Registry.php,v 1.63 2005/03/21 01:54:48 cellog Exp $ + * @version CVS: $Id: Registry.php,v 1.64 2005/08/18 11:57:50 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ @@ -458,7 +458,12 @@ } else { $version = ''; } - $dstr .= "$type $name$rel $version\n"; + if (isset($d['optional']) && $d['optional'] == 'yes') { + $optional = ' (optional)'; + } else { + $optional = ''; + } + $dstr .= "$type $name$rel $version$optional\n"; } $info[$key] = $dstr; break;

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