Changeset 23946 for main/trunk/greenstone2/perllib/inexport.pm
- Timestamp:
- 2011-04-21T21:06:54+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/inexport.pm
r23943 r23946 718 718 if (!-f $earliestDatestampFile && -d $archivedir) { 719 719 my $current_time_in_seconds = time; # in seconds 720 open(FOUT, ">$earliestDatestampFile") || 721 (&gsprintf(STDERR, "{common.cannot_open}: $!\n", $earliestDatestampFile) && die); 722 # die "{common.cannot_open} $earliestDatestampFile: $!\n"; 723 print FOUT $current_time_in_seconds; 724 close(FOUT); 720 721 if(open(FOUT, ">$earliestDatestampFile")) { 722 # || (&gsprintf(STDERR, "{common.cannot_open}: $!\n", $earliestDatestampFile) && die); 723 print FOUT $current_time_in_seconds; 724 close(FOUT); 725 } 726 else { 727 &gsprintf(STDERR, "{import.cannot_write_earliestdatestamp}\n", $earliestDatestampFile); 728 } 729 725 730 } 726 731 … … 886 891 $doc::OIDcount = $OIDcount; 887 892 } 888 else { 889 890 print STDERR "Warning: unable to read document OID count from $oid_count_filename\n"; 891 print STDERR "Setting value to 0\n"; 893 else { 894 &gsprintf(STDERR, "{import.cannot_read_OIDcount}\n", $oid_count_filename); 892 895 } 893 896 } … … 910 913 } 911 914 else { 912 print STDERR "Warning: unable to store document OID count\n";915 &gsprintf(STDERR, "{import.cannot_write_OIDcount}\n", $oid_count_filename); 913 916 } 914 917 }
Note:
See TracChangeset
for help on using the changeset viewer.