Changeset 23218
- Timestamp:
- 2010-10-27T10:47:36+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/incremental-import.pl
r23168 r23218 68 68 my $archive_dir = undef; 69 69 my $site = undef; 70 my $manifest = undef; 70 71 71 72 while (my $arg = shift @argv) { … … 85 86 $site = shift @argv; 86 87 push(@filtered_argv,$arg,$site); 88 } 89 elsif ($arg eq "-manifest") { 90 $manifest = shift @argv; 91 push(@filtered_argv,$arg,$manifest); 87 92 } 88 93 else { … … 136 141 } 137 142 138 if (-e $archiveinf_doc_file_path) { 139 $import_cmd .= " -incremental"; 140 143 if (defined $manifest) { 144 # manifest files need -keepold not -incremental 145 $import_cmd .= " -keepold"; 146 } else { 147 if (-e $archiveinf_doc_file_path) { 148 $import_cmd .= " -incremental"; 149 150 } 151 else { 152 print STDERR "*****\n"; 153 print STDERR "First time import. Switching to full import.pl.\n"; 154 print STDERR "*****\n"; 155 $import_cmd .= " -removeold"; 156 } 141 157 } 142 else {143 print STDERR "*****\n";144 print STDERR "First time import. Switching to full import.pl.\n";145 print STDERR "*****\n";146 $import_cmd .= " -removeold";147 }148 149 158 $import_cmd .= " $quoted_argv \"$collection\""; 150 159
Note:
See TracChangeset
for help on using the changeset viewer.