Changeset 430

Show
Ignore:
Timestamp:
01/09/07 16:43:23 (6 years ago)
Author:
lincoln
Message:

thinko on converting imdb to Storable

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • postprocessors/imdb_augment_data

    r429 r430  
    2525 
    2626my $progname = "imdb_augment_data"; 
    27 my $version = "0.07"; 
     27my $version = "0.08"; 
    2828 
    2929use LWP::UserAgent; 
     
    207207                # delete old-format cache 
    208208                unlink "imdb_augment_data.cache"; 
     209 
     210                &log("Converted old-style cache to new-style."); 
    209211        } 
    210212 
     
    213215        # 
    214216        if (-r $opt->{cache_file}) { 
    215                 $data_cache = Storable::retrieve($opt->{cache_file}); 
     217                my $store = Storable::retrieve($opt->{cache_file}); 
     218                $data_cache = $store->{data_cache}; 
    216219        } else { 
    217220                printf "WARNING: no cache $opt->{cache_file} - ". 
     
    251254sub write_cache 
    252255{ 
    253         Storable::store($data_cache, $opt->{cache_file}); 
     256        my $store; 
     257        $store->{data_cache} = $data_cache; 
     258        Storable::store($store, $opt->{cache_file}); 
    254259} 
    255260