Changeset 20764
- Timestamp:
- 2009-09-30T13:52:07+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/inexport.pm
r20578 r20764 280 280 my $oids = $src_rec->{'oid'}; 281 281 foreach my $oid (@$oids) { 282 283 282 # Find out if it's a main doc, assoc file, or metadata 284 283 … … 334 333 my $val = &GDBMUtils::gdbmDatabaseGet($arcinfo_doc_filename,$oid); 335 334 my ($index_status) = ($val =~ m/^<index-status>(.*)$/m); 336 337 335 338 336 if ($index_status ne "D") { … … 389 387 390 388 foreach my $existing_filename (@existing_files) { 391 392 389 if (-M $existing_filename < $archiveinf_timestamp) { 393 390 # file is newer than last build 394 391 395 392 my $existing_file = $existing_filename; 396 my $collectdir = &util::filename_cat($ENV{'GSDLCOLLECTDIR'});397 398 my $collectdir_resafe = &util::filename_to_regex($collectdir);399 $existing_file =~ s/^$collectdir_resafe(\\|\/)?//;393 #my $collectdir = &util::filename_cat($ENV{'GSDLCOLLECTDIR'}); 394 395 #my $collectdir_resafe = &util::filename_to_regex($collectdir); 396 #$existing_file =~ s/^$collectdir_resafe(\\|\/)?//; 400 397 401 ### print STDERR "**** Deleting existing file: $existing_file\n";398 print STDERR "**** Reindexing existing file: $existing_file\n"; 402 399 403 400 push(@$reindex_files,$existing_file);
Note:
See TracChangeset
for help on using the changeset viewer.