Changeset 16390

Show
Ignore:
Timestamp:
05/16/08 13:36:23 (5 months ago)
Author:
piotras
Message:

heck if midcom channel exists in registry before trying to list packages
and get its real address

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/branch-1-9/midgard/data/midgard/setup/php/midgard_setup_pear.php

    r16323 r16390  
    564564            midgard_setup_ui_cli::error($reg->getMessage()); 
    565565 
     566        /* There's no midcom channel so ignore it and return */ 
     567            if(!$reg->channelExists("midcom")) 
     568                    return; 
     569 
    566570        /* We get full channel name from alias.  
    567571         * Despite the fact, docs says this method returns void type */ 
    568         $channel = $reg->channelName("midcom"); 
     572        $channel = $reg->channelName("midcom");         
    569573        
    570574        /* And we get arary of packages installed from midcom channel */