Changeset 22328


Ignore:
Timestamp:
2010-06-30T12:57:29+12:00 (14 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

File:
1 edited

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,
Note: See TracChangeset for help on using the changeset viewer.