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/export.pl

    r21581 r21613  
    395395    $collectcfg = &colcfg::read_collection_cfg ($configfilename, $gs_mode);
    396396   
     397    # If the infodbtype value wasn't defined in the collect.cfg file, use the default
     398    if (!defined($collectcfg->{'infodbtype'}))
     399    {
     400      $collectcfg->{'infodbtype'} = &dbutil::get_default_infodb_type();
     401    }
     402   
    397403    if (defined $collectcfg->{'importdir'} && $importdir eq "") {
    398404    $importdir = $collectcfg->{'importdir'};
Note: See TracChangeset for help on using the changeset viewer.