Ignore:
Timestamp:
2010-07-19T13:59:55+12:00 (11 years ago)
Author:
davidb
Message:

Correction to caching technique to work with input file rather than output file in terms of working out when the cached file needs to be regenerated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/BaseMediaConverter.pm

    r22351 r22431  
    153153{
    154154    my $self = shift @_;
    155     my ($command,$ofilename,$print_info) = @_;
     155    my ($command,$ifilename,$ofilename,$print_info) = @_;
    156156
    157157    if (!defined $print_info->{'verbosity'}) {
     
    172172    my $self = shift @_;
    173173
    174     my ($command,$ofilename,$print_info) = @_;
     174    my ($command,$ifilename,$ofilename,$print_info) = @_;
    175175
    176176    return $self->run_general_cmd($command,$print_info);
     
    183183    my $self = shift @_;
    184184
    185     my ($command,$ofilename,$print_info) = @_;
     185    my ($command,$ifilename,$ofilename,$print_info) = @_;
    186186
    187187    if (!defined $print_info->{'verbosity'}) {
     
    202202    my $self = shift @_;
    203203
    204     my ($command,$ofilename,$print_info) = @_;
     204    my ($command,$ifilename,$ofilename,$print_info) = @_;
    205205
    206206    my $result;
     
    210210    if ($self->{'enable_cache'}) {
    211211    ($regenerated,$result,$had_error)
    212         = $self->run_cached_general_cmd($command,$ofilename,$print_info);
     212        = $self->run_cached_general_cmd($command,$ifilename,$ofilename,$print_info);
    213213    }
    214214    else {
Note: See TracChangeset for help on using the changeset viewer.