Changeset 25001

Show
Ignore:
Timestamp:
02/04/10 10:28:17 (7 months ago)
Author:
jval
Message:

Add firephp channel (I guess we should actually have an array of channels and methods which handle them because their handling is the same for all and only channel address changes, but that's a different issue from the ticket of course), fixes #1578

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/ragnaroek/midgard/data/midgard/setup/php/midgard_setup_pear.php

    r23575 r25001  
    3333    private $midcom_channel_base; 
    3434    private $htmlpurifier_channel; 
     35    private $firephp_channel; 
    3536    private $initial_base_packages; 
    3637    private $initial_midgard_packages = array(); 
     
    6061 
    6162        $this->htmlpurifier_channel = "htmlpurifier.org";        
     63        $this->firephp_channel = "pear.firephp.org"; 
    6264 
    6365        $this->initial_base_packages = array 
     
    627629        } 
    628630 
     631        /* discover firephp */ 
     632        if (!$this->pear_registry->channelExists($this->firephp_channel)) 
     633        { 
     634            $ret = $this->pear_channel->doDiscover('channel-add', array(), array($this->firephp_channel)); 
     635 
     636            if(PEAR::isError($ret)) 
     637            { 
     638                midgard_setup_ui_cli::error($ret->getMessage()); 
     639            } 
     640        } 
     641 
    629642        $this->update_channels(); 
    630643    } 
     
    636649        /* update midcom channel */ 
    637650        $ret = $this->pear_channel->doUpdate('channel-update', array(), array($this->midcom_channel)); 
    638          
    639651        if (PEAR::isError($ret))  
    640652        { 
     
    644656        /* update htmlpurified */ 
    645657        $ret = $this->pear_channel->doUpdate('channel-update', array(), array($this->htmlpurifier_channel)); 
    646          
     658        if (PEAR::isError($ret)) 
     659        { 
     660            midgard_setup_ui_cli::error($ret->getMessage()); 
     661        } 
     662 
     663        /* update firephp */ 
     664        $ret = $this->pear_channel->doUpdate('channel-update', array(), array($this->firephp_channel)); 
    647665        if (PEAR::isError($ret)) 
    648666        {