Ignore:
Timestamp:
2008-02-22T11:29:52+13:00 (16 years ago)
Author:
davidb
Message:

With the new ability to group collections within a top-level collection, import.pl and buildcol.pl commands can now be given collection names such as "mygroup/demo". Some of the building code -- mostly involved with generating the index files and GDBM files -- had to be updated to correctly handle such compound collection names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/lucenebuilder.pm

    r13590 r15003  
    367367    my $dbext = ".bdb";
    368368    $dbext = ".ldb" if &util::is_little_endian();
    369     my $infodb_file = &util::filename_cat($self->{'build_dir'}, "text", $self->{'collection'} . $dbext);
     369
     370    my $collect_tail = &util::get_dirsep_tail($self->{'collection'});
     371    my $infodb_file = &util::filename_cat($self->{'build_dir'}, "text", $collect_tail . $dbext);
    370372
    371373    # If we aren't doing an incremental addition, then we just call the super-
Note: See TracChangeset for help on using the changeset viewer.