cvs: pear-core /PEAR/Command Registry.php
| From: | Greg Beaver | Date: | Thu, 18 Aug 2005 12:34:25 +0000 |
| Subject: | cvs: pear-core /PEAR/Command Registry.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-34111@lists.php.net to get a copy of this message | ||
cellog Thu Aug 18 08:34:25 2005 EDT
Modified files:
/pear-core/PEAR/Command Registry.php
Log:
fix Bug #5131: pear info PEAR shows "Array" with installed PEAR 1.4.0a13 (CVS)
http://cvs.php.net/diff.php/pear-core/PEAR/Command/Registry.php?r1=1.65&r2=1.66&ty=u
Index: pear-core/PEAR/Command/Registry.php
diff -u pear-core/PEAR/Command/Registry.php:1.65 pear-core/PEAR/Command/Registry.php:1.66
--- pear-core/PEAR/Command/Registry.php:1.65 Thu Aug 18 08:12:29 2005
+++ pear-core/PEAR/Command/Registry.php Thu Aug 18 08:34:25 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.65 2005/08/18 12:12:29 cellog Exp $
+ * @version CVS: $Id: Registry.php,v 1.66 2005/08/18 12:34:25 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -549,6 +549,7 @@
*/
function _doList2($command, $options, $params, &$obj, $installed)
{
+ $reg = &$this->config->getRegistry();
$caption = 'About ' . $obj->getChannel() . '/'
.$obj->getPackage() . '-' .
$obj->getVersion();
$data = array(
@@ -685,7 +686,7 @@
$deps['required'][$index] =
array($deps['required'][$index]);
}
foreach ($deps['required'][$index] as $package) {
- if (isset($package['conflicts']) &&
$package['conflicts'] == 'yes') {
+ if (isset($package['conflicts'])) {
$infoindex = 'Not Compatible with';
if (!isset($info['Not Compatible with'])) {
$info['Not Compatible with'] = '';
@@ -710,10 +711,6 @@
$info[$infoindex] .= "\n Download URI: $package[uri]";
continue;
}
- if ($infoindex == 'Not Compatible with') {
- // conflicts is only used to say that all versions conflict
- continue;
- }
if (isset($package['max']) &&
isset($package['min'])) {
$info[$infoindex] .= " \n Versions " .
$package['min'] . '-' . $package['max'];
@@ -722,7 +719,7 @@
$package['min'] . ' or newer';
} elseif (isset($package['max'])) {
$info[$infoindex] .= " \n Version " .
- $package['min'] . ' or older';
+ $package['max'] . ' or older';
}
if (isset($package['recommended'])) {
$info[$infoindex] .= "\n Recommended version:
$package[recommended]";
@@ -736,8 +733,13 @@
if (is_array($package['exclude'])) {
$package['exclude'] = implode(', ',
$package['exclude']);
}
- $info['Not Compatible with'] .= "Package $package\n
Versions " .
- $package['exclude'];
+ $package['package'] = $package['name']; // for
parsedPackageNameToString
+ if (isset($package['conflicts'])) {
+ $info['Not Compatible with'] .= '=> except ';
+ }
+ $info['Not Compatible with'] .= 'Package ' .
+ $reg->parsedPackageNameToString($package, true);
+ $info['Not Compatible with'] .= "\n Versions " .
$package['exclude'];
}
}
}