Changeset 15714
- Timestamp:
- 2008-05-27T12:55:55+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/lucenebuilder.pm
r15712 r15714 352 352 353 353 # /** A modified version of the basebuilder.pm's function that generates the 354 # * information database (GDBM)from the GA documents. We need to change this354 # * information database from the GA documents. We need to change this 355 355 # * so that if we've been asked to do an incremental build we only add 356 356 # * metadata to autohierarchy classifiers via the IncrementalBuildUtils … … 362 362 my $outhandle = $self->{'outhandle'}; 363 363 364 my $dbext = ".bdb"; 365 $dbext = ".ldb" if &util::is_little_endian(); 366 367 my $collect_tail = &util::get_dirsep_tail($self->{'collection'}); 368 my $infodb_file = &util::filename_cat($self->{'build_dir'}, "text", $collect_tail . $dbext); 364 # Get info database file path 365 my $text_directory_path = &util::filename_cat($self->{'build_dir'}, "text"); 366 my $infodb_file_path = &dbutil::get_infodb_file_path($self->{'collection'}, $text_directory_path); 369 367 370 368 # If we aren't doing an incremental addition, then we just call the super- 371 369 # classes version 372 # Note: Incremental addition can only occur if a text/<collection>.ldb370 # Note: Incremental addition can only occur if an information database 373 371 # already exists. If it doesn't, let the super classes function be 374 372 # called once to generate it. 375 if (!$self->{'incremental_dlc'} || ! (-e $infodb_file))373 if (!$self->{'incremental_dlc'} || !-e $infodb_file_path) 376 374 { 377 375 # basebuilder::make_infodatabase(@_);
Note:
See TracChangeset
for help on using the changeset viewer.