function run($command, $options, $params)
{
- $installer =& new PEAR_Installer($this->config->get('php_dir'),
+ $installer = &new PEAR_Installer($this->config->get('php_dir'),
$this->config->get('ext_dir'),
$this->config->get('doc_dir'));
$installer->debug = $this->config->get('verbose');
$failmsg = '';
$opts = array();
switch ($command) {
- case 'install':
case 'upgrade': {
- if ($command == 'upgrade') {
- $opts['upgrade'] = true;
- }
+ $opts['upgrade'] = true;
+ // fall through
+ case 'install':
if (isset($options['f'])) {
$opts['force'] = true;
}