cvs: pear-core /PEAR/Command Channels.php

From: Date: Fri, 13 Aug 2004 23:02:37 +0000
Subject: cvs: pear-core /PEAR/Command Channels.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-22867@lists.php.net to get a copy of this message
cellog Fri Aug 13 19:02:37 2004 EDT Modified files: /pear-core/PEAR/Command Channels.php Log: If $ pear channel-update channelname is run and channelname is a directory, it would fail this commit fixes that problem http://cvs.php.net/diff.php/pear-core/PEAR/Command/Channels.php?r1=1.3&r2=1.4&ty=u Index: pear-core/PEAR/Command/Channels.php diff -u pear-core/PEAR/Command/Channels.php:1.3 pear-core/PEAR/Command/Channels.php:1.4 --- pear-core/PEAR/Command/Channels.php:1.3 Mon Aug 2 02:36:12 2004 +++ pear-core/PEAR/Command/Channels.php Fri Aug 13 19:02:37 2004 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Channels.php,v 1.3 2004/08/02 06:36:12 cellog Exp $ +// $Id: Channels.php,v 1.4 2004/08/13 23:02:37 cellog Exp $ require_once 'PEAR/Command/Common.php'; require_once 'PEAR/Registry.php'; @@ -380,7 +380,8 @@ if (sizeof($params) != 1) { return $this->raiseError("No channel file specified"); } - if (!file_exists($params[0]) && $reg->channelExists(strtolower($params[0]))) { + if ((!file_exists($params[0]) || is_dir($params[0])) + && $reg->channelExists(strtolower($params[0]))) { $c = $reg->getChannel(strtolower($params[0])); $this->ui->outputData('Retrieving channel.xml from remote server'); $chan = $this->config->get('default_channel');

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