Ignore:
Timestamp:
2009-02-12T13:31:40+13:00 (15 years ago)
Author:
davidb
Message:

Corrected mistake where collectdir was treated as the the full pathname to the named collection, rather than (as it should be) pointing to one folder higher than that.

File:
1 edited

Legend:

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

    r18492 r18510  
    8585    }
    8686
     87    if (!defined $collect_dir) {
     88    $collect_dir = &util::filename_cat($ENV{'GSDLHOME'},"collect");
     89    }
     90    my $this_collect_dir = &util::filename_cat($collect_dir,$collect);
    8791
    88     if (!defined $collect_dir) {
    89     $collect_dir = &util::filename_cat($ENV{'GSDLHOME'},"collect",$collect);
    90     }
    91     if (!-d $collect_dir) {
    92     print STDERR "Error: $collect_dir does not exist\n";
     92    if (!-d $this_collect_dir) {
     93    print STDERR "Error: $this_collect_dir does not exist\n";
    9394    exit(-1);
    9495    }
     
    9697
    9798    if (!defined $archive_dir) {
    98     $archive_dir = &util::filename_cat($collect_dir,"archives");
     99    $archive_dir = &util::filename_cat($this_collect_dir,"archives");
    99100    }
    100101   
Note: See TracChangeset for help on using the changeset viewer.