Ignore:
Timestamp:
2009-02-10T14:10:31+13:00 (15 years ago)
Author:
davidb
Message:

incremental switches to -removeold if collection not built before

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/bin/script/incremental-import.pl

    r18491 r18492  
    9696
    9797    if (!defined $archive_dir) {
    98     $archive_dir = &util::filename_cat($collect_dir,"archive_dir");
     98    $archive_dir = &util::filename_cat($collect_dir,"archives");
    9999    }
    100100   
     
    112112    }
    113113    else {
    114     print STDERR "$archiveinf_doc does not exist.\n";
     114### print STDERR "$archiveinf_doc does not exist.\n";
     115    print STDERR "*****\n";
    115116    print STDERR "First time built. Switching to full import.pl.\n";
     117    print STDERR "*****\n";
    116118    $import_cmd .= " -removeold";
    117119    }
    118120
    119     $import_cmd .= " $quoted_argv";
     121    $import_cmd .= " $quoted_argv \"$collect\"";
    120122
    121 
     123   
    122124    my $import_status = system($import_cmd)/256;
    123125   
Note: See TracChangeset for help on using the changeset viewer.