Ignore:
Timestamp:
2010-01-25T16:20:25+13:00 (14 years ago)
Author:
mdewsnip
Message:

Changed calls to read_collection_cfg() so the infodbtype value is set to be the default infodbtype (from dbutil), if not defined in the collect.cfg file. Part of making the code less GDBM-specific.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/buildcol.pl

    r21292 r21613  
    374374    ($configfilename, $gs_mode) = &colcfg::get_collect_cfg_name($out);
    375375    $collectcfg = &colcfg::read_collection_cfg ($configfilename, $gs_mode);
     376   
     377    # If the infodbtype value wasn't defined in the collect.cfg file, use the default
     378    if (!defined($collectcfg->{'infodbtype'}))
     379    {
     380      $collectcfg->{'infodbtype'} = &dbutil::get_default_infodb_type();
     381    }
    376382
    377383    if ($verbosity !~ /\d+/) {
Note: See TracChangeset for help on using the changeset viewer.