cvs: php-src /pear/PEAR/Command Remote.php

From: Date: Tue, 30 Sep 2003 15:22:42 +0000
Subject: cvs: php-src /pear/PEAR/Command Remote.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-13190@lists.php.net to get a copy of this message
cox Tue Sep 30 11:22:42 2003 EDT Modified files: /php-src/pear/PEAR/Command Remote.php Log: Give more info about release states in list-upgrades Index: php-src/pear/PEAR/Command/Remote.php diff -u php-src/pear/PEAR/Command/Remote.php:1.33 php-src/pear/PEAR/Command/Remote.php:1.34 --- php-src/pear/PEAR/Command/Remote.php:1.33 Tue Aug 5 19:17:40 2003 +++ php-src/pear/PEAR/Command/Remote.php Tue Sep 30 11:22:42 2003 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Remote.php,v 1.33 2003/08/05 23:17:40 pajoye Exp $ +// $Id: Remote.php,v 1.34 2003/09/30 15:22:42 cox Exp $ require_once 'PEAR/Command/Common.php'; require_once 'PEAR/Common.php'; @@ -322,7 +322,7 @@ $latest = $remote->call("package.listLatestReleases"); } else { $latest = $remote->call("package.listLatestReleases", $state); - $caption .= ' (' . $state . ')'; + $caption .= ' (' . implode(', ', PEAR_Common::betterStates($state, true)) . ')'; } $caption .= ':'; if (PEAR::isError($latest)) { @@ -342,7 +342,9 @@ continue; } extract($info); - $inst_version = $reg->packageInfo($package, 'version'); + $pkginfo = $reg->packageInfo($package); + $inst_version = $pkginfo['version']; + $inst_state = $pkginfo['release_state']; if (version_compare("$version", "$inst_version", "le")) { // installed version is up-to-date continue; @@ -356,7 +358,7 @@ } else { $fs = " -"; // XXX center instead } - $data['data'][] = array($pkg, $inst_version, $version, $fs); + $data['data'][] = array($pkg, "$inst_version ($inst_state)", "$version ($state)", $fs); } if (empty($data['data'])) { $this->ui->outputData('No upgrades available');

« previous php.pear.cvs (#13190) next »