cvs: pear-core /PEAR ChannelFile.php
| From: | Greg Beaver | Date: | Thu, 21 Oct 2004 18:44:50 +0000 |
| Subject: | cvs: pear-core /PEAR ChannelFile.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-1105@lists.php.net to get a copy of this message | ||
cellog Thu Oct 21 14:44:50 2004 EDT
Modified files:
/pear-core/PEAR ChannelFile.php
Log:
support for the pseudo-channel __private
http://cvs.php.net/diff.php/pear-core/PEAR/ChannelFile.php?r1=1.22&r2=1.23&ty=u
Index: pear-core/PEAR/ChannelFile.php
diff -u pear-core/PEAR/ChannelFile.php:1.22 pear-core/PEAR/ChannelFile.php:1.23
--- pear-core/PEAR/ChannelFile.php:1.22 Thu Oct 21 14:43:47 2004
+++ pear-core/PEAR/ChannelFile.php Thu Oct 21 14:44:50 2004
@@ -16,7 +16,7 @@
// | Authors: Gregory Beaver <cellog@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: ChannelFile.php,v 1.22 2004/10/21 18:43:47 cellog Exp $
+// $Id: ChannelFile.php,v 1.23 2004/10/21 18:44:50 cellog Exp $
require_once 'PEAR/Common.php';
@@ -958,7 +958,9 @@
if (empty($info['name'])) {
$this->_validateError(PEAR_CHANNELFILE_ERROR_NO_NAME);
} elseif (!$this->validChannelName($info['name'])) {
- $this->_validateError(PEAR_CHANNELFILE_ERROR_INVALID_NAME, array('tag'
=> 'name', 'name' => $info['name']));
+ if ($info['name'] != '__private') {
+ $this->_validateError(PEAR_CHANNELFILE_ERROR_INVALID_NAME, array('tag'
=> 'name', 'name' => $info['name']));
+ }
}
if (empty($info['summary'])) {
$this->_validateError(PEAR_CHANNELFILE_ERROR_NO_SUMMARY);