Changeset 23309

Show
Ignore:
Timestamp:
10.11.2010 15:28:48 (9 years ago)
Author:
kjdon
Message:

we need to modify some of the import options depending on whether we are in depositor (always uses manifest) or collector (sometimes cfg file has changed, in which case we need to do a full import)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/wizardaction.cpp

    r23044 r23309  
    536536  if (args[macro_prefix+"esrce"] == 1) { 
    537537    // we're adding data to an existing collection 
    538     options += " -save_archives -append -manifest"; 
     538    options += " -save_archives"; 
     539    if (args[macro_prefix+"cfgchanged"] !=1) { // collector, have modified cfg file as well, so need to do a full reimport. 
     540      options += " -append"; 
     541    }  
     542    if (macro_prefix == "di1") { // depositor, always use manifest 
     543    options += " -manifest"; 
     544    } 
     545     
    539546  } 
    540547