From 2eb240ef2d7f337a1cf080f104f7bce8c991ca6c Mon Sep 17 00:00:00 2001 From: mumumu-org Date: Sun, 24 May 2009 11:16:34 +0000 Subject: [PATCH 1/1] - deleted unused plugin. --- class/Plugin/Handle/ChannelUpdate.php | 117 ---------------------------------- 1 file changed, 117 deletions(-) delete mode 100644 class/Plugin/Handle/ChannelUpdate.php diff --git a/class/Plugin/Handle/ChannelUpdate.php b/class/Plugin/Handle/ChannelUpdate.php deleted file mode 100644 index ef96f35..0000000 --- a/class/Plugin/Handle/ChannelUpdate.php +++ /dev/null @@ -1,117 +0,0 @@ - - * @license http://www.opensource.org/licenses/bsd-license.php The BSD License - * @package Ethna - * @version $Id$ - */ - -require_once ETHNA_BASE . '/class/Ethna_PearWrapper.php'; - -// {{{ Ethna_Plugin_Handle_ChannelUpdate -/** - * info-plugin handler - * - * @author ICHII Takashi - * @access public - * @package Ethna - */ -class Ethna_Plugin_Handle_ChannelUpdate extends Ethna_Plugin_Handle -{ - // {{{ _parseArgList() - /** - * @access private - */ - function &_parseArgList() - { - $r =& $this->_getopt(array('local', 'master', 'basedir=', - 'channel=', 'pearopt=')); - if (Ethna::isError($r)) { - return $r; - } - list($opt_list, $arg_list) = $r; - $ret = array(); - - // options - $ret['target'] = isset($opt_list['master']) ? 'master' : 'local'; - if (isset($opt_list['basedir'])) { - $ret['basedir'] = end($opt_list['basedir']); - } - if (isset($opt_list['channel'])) { - $ret['channel'] = end($opt_list['channel']); - } - - return $ret; - } - // }}} - - // {{{ perform() - /** - * @access public - */ - function perform() - { - $args =& $this->_parseArgList(); - if (Ethna::isError($args)) { - return $args; - } - - $pear =& new Ethna_PearWrapper(); - if (isset($args['pearopt'])) { - $pear->setPearOpt($args['pearopt']); - } - - $target = isset($args['target']) ? $args['target'] : null; - $channel = isset($args['channel']) ? $args['channel'] : null; - $basedir = isset($args['basedir']) ? realpath($args['basedir']) : getcwd(); - - $r =& $pear->init($target, $basedir, $channel); - if (Ethna::isError($r)) { - return $r; - } - - $r =& $pear->doClearCache(); - if (Ethna::isError($r)) { - return $r; - } - - $r =& $pear->doChannelUpdate(); - if (Ethna::isError($r)) { - return $r; - } - - return true; - } - // }}} - - // {{{ getDescription() - /** - * @access public - */ - function getDescription() - { - return <<id} [-c|--channel=channel] [-b|--basedir=dir] [-l|--local] [-m|--master] - -EOS; - } - // }}} - - // {{{ getUsage() - /** - * @access public - */ - function getUsage() - { - return <<id} [-c|--channel=channel] [-b|--basedir=dir] [-l|--local] [-m|--master] [type name] -EOS; - } - // }}} -} -// }}} -?> -- 2.11.0