Re: cvs: php4 /pear/PEAR/Command Remote.php
| From: | Jani Taskinen | Date: | Sun, 24 Nov 2002 23:12:34 +0000 |
| Subject: | Re: cvs: php4 /pear/PEAR/Command Remote.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-7569@lists.php.net to get a copy of this message | ||
Don't forget to MFH these changes..?
--Jani
On Sun, 24 Nov 2002, Christian Dickmann wrote:
>dickmann Sun Nov 24 05:06:54 2002 EDT
>
> Modified files:
> /php4/pear/PEAR/Command Remote.php
> Log:
> add errormessage, but that does not fix the problem
>
>
>Index: php4/pear/PEAR/Command/Remote.php
>diff -u php4/pear/PEAR/Command/Remote.php:1.22 php4/pear/PEAR/Command/Remote.php:1.23
>--- php4/pear/PEAR/Command/Remote.php:1.22 Wed Oct 2 17:27:25 2002
>+++ php4/pear/PEAR/Command/Remote.php Sun Nov 24 05:06:54 2002
>@@ -17,7 +17,7 @@
> // | |
> // +----------------------------------------------------------------------+
> //
>-// $Id: Remote.php,v 1.22 2002/10/02 21:27:25 ssb Exp $
>+// $Id: Remote.php,v 1.23 2002/11/24 10:06:54 dickmann Exp $
>
> require_once 'PEAR/Command/Common.php';
> require_once 'PEAR/Common.php';
>@@ -169,6 +169,9 @@
> $available = $r->call('package.listAll', $list_options);
> if (PEAR::isError($available)) {
> return $this->raiseError($available);
>+ }
>+ if (!is_array($available)) {
>+ return $this->raiseError('The package list could not be fetched from the
>remote server. Please try again. (Debug info: "'.$available.'")');
> }
> $data = array(
> 'caption' => 'All packages:',
>
>
>
>
--
<- For Sale! ->