Changeset 15166


Ignore:
Timestamp:
2008-04-02T18:13:32+13:00 (14 years ago)
Author:
ak19
Message:

Modified tmp_area_convert_file routine to use pass new argument ensure_path_absolute to util::soft_link to make sure soft-linking works for GSDL remote case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/ConvertToPlug.pm

    r15151 r15166  
    289289    $suffix = lc($suffix);
    290290    my $tmp_filename = &util::filename_cat($tmp_dirname, "$tailname$suffix");
    291     &util::soft_link($input_filename, $tmp_filename);
     291   
     292    # If gsdl is remote, we're given relative path to input file, of the form import/tailname.suffix
     293    # But we can't softlink to relative paths. Therefore, we need to ensure that
     294    # the input_filename is the absolute path, see http://perldoc.perl.org/File/Spec.html
     295    my $ensure_path_absolute = 1; # true
     296    &util::soft_link($input_filename, $tmp_filename, $ensure_path_absolute);
    292297    my $verbosity = $self->{'verbosity'};
    293298    if ($verbosity > 0) {
Note: See TracChangeset for help on using the changeset viewer.