Changeset 52 for shepherd

Show
Ignore:
Timestamp:
10/09/06 14:52:09 (7 years ago)
Author:
max
Message:

Retrieves grabber config files.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • shepherd

    r51 r52  
    33# "Shepherd" 
    44 
    5 my $version = '0.2.8'; 
     5my $version = '0.2.9'; 
    66 
    77# A wrapper for various Aussie TV guide data grabbers 
     
    2323# 0.2.7   : Changed online file structure 
    2424# 0.2.8   : Integrated reconciler 
     25# 0.2.9   : Grabber config support 
    2526 
    2627BEGIN { *CORE::GLOBAL::die = \&my_die; } 
     
    12411242    return unless (fetch_file($rfile, $newfile)); 
    12421243     
    1243     # Make it executable 
     1244    # Fetch grabber config file 
     1245    $rfile .= ".conf"; 
     1246    my $config = fetch_file($rfile); 
     1247    return unless ($config); 
     1248 
     1249    eval $config; 
     1250 
     1251    # Make component executable 
    12441252    system('chmod u+x ' . $newfile); 
    12451253 
     
    12671275    $components->{$proggy}->{ver} = $latestversion; 
    12681276    $components->{$proggy}->{ready} = $result; 
     1277    $components->{$proggy}->{config} = $config; 
    12691278    $components->{$proggy}->{laststatus} = sprintf "updated to %s on %s", $latestversion, (strftime "%a%d%b%y",localtime(time)); 
    12701279