Changeset 31764


Ignore:
Timestamp:
2017-06-29T18:25:57+12:00 (7 years ago)
Author:
ak19
Message:

Should replace INPUT_FILE placeholder with softlink path tmp_filename as this is what ConvertBinaryFile uses as inputfile to its conversion command. It may be the absolute path, whereas input_file might not be.

File:
1 edited

Legend:

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

    r31763 r31764  
    284284    # replace occurrences of placeholders in cmd string
    285285    #$cmd =~ s@\"@\\"@g;
    286     $cmd =~ s@%INPUT_FILE@\"$input_filename\"@g;
     286    $cmd =~ s@%INPUT_FILE@\"$tmp_filename\"@g; # refer to the softlink
    287287    if(defined $output_dirname) {
    288288    $cmd =~ s@%OUTPUT@\"$output_dirname\"@g;
Note: See TracChangeset for help on using the changeset viewer.