cvs: php4 /pear/PEAR/Command Registry.php

From: Date: Tue, 04 Jun 2002 15:25:23 +0000
Subject: cvs: php4 /pear/PEAR/Command Registry.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4409@lists.php.net to get a copy of this message
ssb Tue Jun 4 11:25:23 2002 EDT Modified files: /php4/pear/PEAR/Command Registry.php Log: * sort package names in "pear list" Index: php4/pear/PEAR/Command/Registry.php diff -u php4/pear/PEAR/Command/Registry.php:1.18 php4/pear/PEAR/Command/Registry.php:1.19 --- php4/pear/PEAR/Command/Registry.php:1.18 Sun Jun 2 09:07:18 2002 +++ php4/pear/PEAR/Command/Registry.php Tue Jun 4 11:25:23 2002 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Registry.php,v 1.18 2002/06/02 13:07:18 ssb Exp $ +// $Id: Registry.php,v 1.19 2002/06/04 15:25:23 ssb Exp $ require_once 'PEAR/Command/Common.php'; require_once 'PEAR/Registry.php'; @@ -68,12 +68,17 @@ // }}} // {{{ doList() + function _sortinfo($a, $b) + { + return strcmp($a['package'], $b['package']); + } + function doList($command, $options, $params) { $reg = new PEAR_Registry($this->config->get('php_dir')); if (sizeof($params) == 0) { $installed = $reg->packageInfo(); - + usort($installed, array(&$this, '_sortinfo')); $i = $j = 0; $data = array( 'caption' => 'Installed packages:',

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