Re: listing non-stable releases..
| From: | Alan Knowles | Date: | Thu, 13 Jun 2002 10:57:12 +0000 |
| Subject: | Re: listing non-stable releases.. | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6981@lists.php.net to get a copy of this message | ||
the patch doesnt help: the problem appears to be this. in PEAR/Remote.php call()
$f = new XML_RPC_Message($method, $this->_encode($args));
$this->_encode() returns a Object :Type XML_RPC_valueXML_RPC_Message() expects an array as it's second argument... just changing it to array($this->_encode($args))); doesnt help however.. - it sends this, and barfs due to XML error: junk after document element <?xml version="1.0"?> <methodCall> <methodName>package.listAll</methodName> <params> <param> <value><array> <data> <value><boolean>0</boolean></value> </data> </array></value> </param> </params> </methodCall> anyway this stuffs behond me for tonight :) regards alan Alan Knowles wrote:
slight change required to list non-stable releases. Index: Remote.php =================================================================== RCS file: /repository/php4/pear/PEAR/Command/Remote.php,v retrieving revision 1.12.2.3 diff -u -r1.12.2.3 Remote.php--- Remote.php 1 Jun 2002 18:39:36 -0000 1.12.2.3+++ Remote.php 13 Jun 2002 10:19:58 -0000 @@ -171,7 +171,10 @@{ $r = new PEAR_Remote($this->config); $reg = new PEAR_Registry($this->config->get('php_dir')); - $available = $r->call('package.listAll', true); + $options = false; + if ($this->config->get('preferred_state') == 'stable') + $options = true; + $available = $r->call('package.listAll', $options); if (PEAR::isError($available)) { return $this->raiseError($available); }alan@alan:~/Pro