Ignore:
Timestamp:
2009-09-10T10:50:05+12:00 (15 years ago)
Author:
davidb
Message:

Changes to support new incremental_mode variable, and to track metadata.xml files more closely so incremental building works when a document is first build without any metadata attached, then then in a subsequent build has metadata from such a source as metadata.xml added.

File:
1 edited

Legend:

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

    r19623 r20577  
    148148
    149149
    150 # called if we are doing incremental building
    151 sub set_incremental {
    152     my $self = shift(@_);
    153     my ($incremental) = @_;
    154 
    155     $self->{'incremental'} = $incremental;
    156 }
    157150
    158151# return 1 if this class might recurse using $pluginfo
     
    283276
    284277    $block_hash->{'all_files'} = {} unless defined $block_hash->{'all_files'};
     278    $block_hash->{'metadata_files'} = {} unless defined $block_hash->{'metadata_files'};
    285279
    286280    $block_hash->{'file_blocks'} = {} unless defined $block_hash->{'file_blocks'};
     
    597591    }
    598592
    599 
    600593    if (defined $self->{'inf_timestamp'}) {
    601594        # Look to see if it's a completely new file
     
    608601        if (! -d $full_filename) {
    609602            if (!$block_hash->{'reindex_files'}->{$full_filename}) {
    610             # filename has been around for longer than inf
     603            # filename has been around for longer than inf_timestamp
    611604            print $outhandle "**** Skipping $subfile\n" if ($verbosity >3);
    612605            next;
Note: See TracChangeset for help on using the changeset viewer.