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/basebuilder.pm

    r14934 r15003  
    322322    my $dbext = ".bdb";
    323323    $dbext = ".ldb" if &util::is_little_endian();
    324     my $fulldbname = &util::filename_cat ($textdir, "$self->{'collection'}$dbext");
     324    my $dbname = &util::get_dirsep_tail($self->{'collection'}).$dbext;
     325    my $fulldbname = &util::filename_cat ($textdir, $dbname);
    325326    $fulldbname =~ s/\//\\/g if ($ENV{'GSDLOS'} =~ /^windows$/i);
    326327
     
    430431    $build_cfg->{'builddate'} = time;
    431432    $build_cfg->{'buildtype'} = $self->{'buildtype'};
    432     $build_cfg->{'indexstem'} = $self->{'collection'};
     433    $build_cfg->{'indexstem'} = &util::get_dirsep_tail($self->{'collection'});
    433434    $build_cfg->{'stemindexes'} = $self->{'stemindexes'};
    434435   
Note: See TracChangeset for help on using the changeset viewer.