cvs: php4 /pear/scripts pearcmd-remote-list.php

From: Date: Thu, 07 Feb 2002 20:50:08 +0000
Subject: cvs: php4 /pear/scripts pearcmd-remote-list.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-2326@lists.php.net to get a copy of this message
mj Thu Feb 7 15:50:08 2002 EDT Modified files: /php4/pear/scripts pearcmd-remote-list.php Log: * Better error handling. Index: php4/pear/scripts/pearcmd-remote-list.php diff -u php4/pear/scripts/pearcmd-remote-list.php:1.1 php4/pear/scripts/pearcmd-remote-list.php:1.2 --- php4/pear/scripts/pearcmd-remote-list.php:1.1 Wed Jan 30 07:20:12 2002 +++ php4/pear/scripts/pearcmd-remote-list.php Thu Feb 7 15:50:08 2002 @@ -3,6 +3,11 @@ $remote = new PEAR_Remote($config); $result = $remote->call('package.listAll', 1); $i = $j = 0; + +if (PEAR::isError($result)) { + die("\n\n Error while executing command!\n\n"); +} + heading("Available packages"); foreach ($result as $package => $info) { if ($i++ % 20 == 0) {

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