Changeset 31764

Show
Ignore:
Timestamp:
29.06.2017 18:25:57 (4 weeks 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.

Files:
1 modified

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;