Ignore:
Timestamp:
2009-02-01T14:36:22+13:00 (15 years ago)
Author:
davidb
Message:

Modifications for incremental building to support files that need to be deleted

File:
1 edited

Legend:

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

    r17738 r18441  
    131131
    132132    my $output_dir = $processor->getoutputdir();
    133     my $archives_inf = &util::filename_cat($output_dir,"archives.inf");
    134    
     133##  my $archives_inf = &util::filename_cat($output_dir,"archives.inf");
     134    my $db_ext = &util::is_little_endian() ? ".ldb" : ".bdb";
     135    my $doc_db = "archiveinf-doc$db_ext";
     136        my $archives_inf = &util::filename_cat($output_dir,$doc_db);
     137
    135138    if ( -e $archives_inf ) {
    136139        $self->{'inf_timestamp'} = -M $archives_inf;
     
    278281    return $directory_ok unless (defined $directory_ok && $directory_ok == 1);
    279282
     283    $block_hash->{'all_files'} = {} unless defined $block_hash->{'all_files'};
     284
    280285    $block_hash->{'file_blocks'} = {} unless defined $block_hash->{'file_blocks'};
    281286    $block_hash->{'shared_fileroot'} = {} unless defined $block_hash->{'shared_fileroot'};
     
    576581        if ($filename_timestamp > $inf_timestamp) {
    577582            # filename has been around for longer than inf
    578 #####           print $outhandle "**** Skipping $subfile\n";
     583            print $outhandle "**** Skipping $subfile\n" if ($verbosity >3);
    579584            next;
    580585        }
Note: See TracChangeset for help on using the changeset viewer.