Changeset 15727

Show
Ignore:
Timestamp:
27.05.2008 15:45:45 (11 years ago)
Author:
mdewsnip
Message:

(Adding new DB support) Added a dbutil::get_default_infodb_type() function, and called it from basebuilder if no 'infodbtype' value is specified in the collect.cfg file.

Location:
gsdl/trunk/perllib
Files:
2 modified

Legend:

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

    r15726 r15727  
    101101 
    102102    # get the database type for this collection from the collect.cfg file (may be undefined) 
    103     $self->{'infodbtype'} = $self->{'collect_cfg'}->{'infodbtype'} || ""; 
     103    $self->{'infodbtype'} = $self->{'collect_cfg'}->{'infodbtype'} || &dbutil::get_default_infodb_type(); 
    104104 
    105105    # get the list of plugins for this collection 
  • gsdl/trunk/perllib/dbutil.pm

    r15725 r15727  
    2727 
    2828use strict; 
     29 
     30 
     31sub get_default_infodb_type 
     32{ 
     33    return "gdbm"; 
     34} 
    2935 
    3036