Changeset 23943
- Timestamp:
- 2011-04-21T15:13:22+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/inexport.pm
r23939 r23943 552 552 my $metadata = {}; 553 553 554 # g obal blocking pass may set up some metadata554 # global blocking pass may set up some metadata 555 555 &plugin::file_block_read($pluginfo, $importdir, "", $block_hash, $metadata, $gli); 556 556 … … 716 716 # oailastmodified and oailastmodifieddate 717 717 my $earliestDatestampFile = &util::filename_cat($archivedir, "earliestDatestamp"); 718 if (!-f $earliestDatestampFile ) {718 if (!-f $earliestDatestampFile && -d $archivedir) { 719 719 my $current_time_in_seconds = time; # in seconds 720 open(FOUT, ">$earliestDatestampFile") || die "{common.cannot_open} $earliestDatestampFile: $!\n"; 721 # (&gsprintf(STDERR, "{common.cannot_open}: $!\n", $earliestDatestampFile) && die); 720 open(FOUT, ">$earliestDatestampFile") || 721 (&gsprintf(STDERR, "{common.cannot_open}: $!\n", $earliestDatestampFile) && die); 722 # die "{common.cannot_open} $earliestDatestampFile: $!\n"; 722 723 print FOUT $current_time_in_seconds; 723 724 close(FOUT);
Note:
See TracChangeset
for help on using the changeset viewer.