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

From: Date: Fri, 14 Jun 2002 15:03:30 +0000
Subject: cvs: php4 /pear/PEAR/Command Remote.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4620@lists.php.net to get a copy of this message
alan_k Fri Jun 14 11:03:30 2002 EDT Modified files: /php4/pear/PEAR/Command Remote.php Log: remote list and remote listall, can now list non-stable packages if you set prefered_state to something else Index: php4/pear/PEAR/Command/Remote.php diff -u php4/pear/PEAR/Command/Remote.php:1.16 php4/pear/PEAR/Command/Remote.php:1.17 --- php4/pear/PEAR/Command/Remote.php:1.16 Sat Jun 8 14:44:34 2002 +++ php4/pear/PEAR/Command/Remote.php Fri Jun 14 11:03:29 2002 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Remote.php,v 1.16 2002/06/08 18:44:34 dickmann Exp $ +// $Id: Remote.php,v 1.17 2002/06/14 15:03:29 alan_k Exp $ require_once 'PEAR/Command/Common.php'; require_once 'PEAR/Common.php'; @@ -135,7 +135,10 @@ function doRemoteList($command, $options, $params) { $r = new PEAR_Remote($this->config); - $available = $r->call('package.listAll', true); + $list_options = false; + if ($this->config->get('preferred_state') == 'stable') + $list_options = true; + $available = $r->call('package.listAll', $list_options); if (PEAR::isError($available)) { return $this->raiseError($available); } @@ -162,7 +165,10 @@ { $r = new PEAR_Remote($this->config); $reg = new PEAR_Registry($this->config->get('php_dir')); - $available = $r->call('package.listAll', true); + $list_options = false; + if ($this->config->get('preferred_state') == 'stable') + $list_options = true; + $available = $r->call('package.listAll', $list_options); if (PEAR::isError($available)) { return $this->raiseError($available); } @@ -345,4 +351,4 @@ // }}} } -?> \ No newline at end of file +?>

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