Changeset 21607


Ignore:
Timestamp:
2010-01-25T15:57:27+13:00 (14 years ago)
Author:
mdewsnip
Message:

Changed basebuilder.pm so set_infodbtype() is called on the buildproc object as soon as it is created, instead of just for the infodb phase. This is so the buildproc knows the infodbtype for all phases of the build. Part of making the code less GDBM-specific.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/basebuilder.pm

    r20686 r21607  
    231231    die "$@" if $@;
    232232
     233    # We call set_infodbtype() now so the buildproc knows the infodbtype for all phases of the build
     234    $self->{'buildproc'}->set_infodbtype($self->{'infodbtype'});
    233235   
    234236   $self->generate_index_options();
     
    438440    # set up the document processor
    439441
    440     $self->{'buildproc'}->set_infodbtype ($infodb_type);
    441442    $self->{'buildproc'}->set_output_handle ($infodb_handle);
    442443    $self->{'buildproc'}->set_mode ('infodb');
Note: See TracChangeset for help on using the changeset viewer.