Changeset 21607

Show
Ignore:
Timestamp:
25.01.2010 15:57:27 (9 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.

Files:
1 modified

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');