Changeset 22328

Show
Ignore:
Timestamp:
30.06.2010 12:57:29 (9 years ago)
Author:
kjdon
Message:

store the path to doc.xml with unix / slashes so that the collection can be copied between OS and still be rebuilt without reimport. Note that full paths are used for file paths (not for doc.xml path) so incremental build won't work if collection is moved

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugouts/BasePlugout.pm

    r22232 r22328  
    693693#       $real_filename =~ s/^$collect_dir_re_safe//; 
    694694#       } 
     695         
    695696        if (defined $reverse_lookups) { 
    696697        $reverse_lookups->{$real_filename} = 1; 
     
    723724    my $oid = $doc_obj->get_OID(); 
    724725    my $source_filename = $doc_obj->get_unmodified_source_filename(); 
    725  
    726726    my $working_info = $self->{'output_info'};  
    727727    my $doc_info = $working_info->get_info($oid); 
    728728 
    729729    my ($doc_file,$index_status,$sortmeta) = @$doc_info; 
    730  
     730    # doc_file is the path to the archive doc.xml. Make sure it has unix  
     731    # slashes, then if the collection is copied to linux, it can be built without reimport 
     732    $doc_file =~ s/\\/\//g; 
    731733    my $oid_files = { 'doc-file' => $doc_file, 
    732734              'index-status' => $index_status,