Ignore:
Timestamp:
2010-01-25T17:11:53+13:00 (14 years ago)
Author:
mdewsnip
Message:

Changed plugin::remove_some() to take the infodbtype as the second parameter, so it can find the archiveinf-src database. Part of making the code less GDBM-specific.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/import.pl

    r21613 r21618  
    634634       
    635635       
    636             &plugin::remove_some($pluginfo, $archivedir, \@deleted_files);
     636            &plugin::remove_some($pluginfo, $collectcfg->{'infodbtype'}, $archivedir, \@deleted_files);
    637637           
    638638            &inexport::mark_docs_for_deletion($archive_info,$block_hash,\@deleted_files, $archivedir,$verbosity, "delete");
     
    644644            print STDERR "Files to reindex since last import:\n  ";
    645645            print STDERR join("\n  ",@reindex_files), "\n";
    646             &plugin::remove_some($pluginfo, $archivedir, \@reindex_files);
     646            &plugin::remove_some($pluginfo, $collectcfg->{'infodbtype'}, $archivedir, \@reindex_files);
    647647            &inexport::mark_docs_for_deletion($archive_info,$block_hash,\@reindex_files, $archivedir,$verbosity, "reindex");
    648648        }
Note: See TracChangeset for help on using the changeset viewer.