Changeset 23485 for main/trunk/greenstone2/perllib/inexport.pm
- Timestamp:
- 2010-12-14T16:16:48+13:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/inexport.pm
r23402 r23485 944 944 # is it modified?? 945 945 if (-M $full_curr_file < $archiveinf_timestamp) { 946 print STDERR "*** Detected a modified metadata file: $full_curr_file\n" if $verbosity >2;946 print STDERR "*** Detected a *modified metadata* file: $full_curr_file\n" if $verbosity >= 2; 947 947 # its newer than last build 948 948 $block_hash->{'new_or_modified_metadata_files'}->{$full_curr_file} = 1; … … 974 974 # Greenstone to always be this) 975 975 976 print STDERR "*** ** Detected new metadata file: $full_curr_file\n" if $verbosity >2;976 print STDERR "*** Detected *new* metadata file: $full_curr_file\n" if $verbosity >= 2; 977 977 $block_hash->{'new_or_modified_metadata_files'}->{$full_curr_file} = 1; 978 978 } … … 1012 1012 1013 1013 if ($existing_f =~ m/^$situated_dir/) { 1014 1015 print STDERR "**** Existing file $existing_f\nis located within\n$situated_dir\n"; 1016 1014 1017 push(@$reindex_files,$existing_f); 1015 1018 $block_hash->{'reindex_files'}->{$existing_f} = 1; … … 1107 1110 # that this file is used in (note in most cases, it's just one OID) 1108 1111 1109 my $src_rec_string = &dbutil::read_infodb_entry($infodbtype, $arcinfo_src_filename, $file); 1110 my $src_rec = &dbutil::convert_infodb_string_to_hash($src_rec_string); 1112 my $src_rec = &dbutil::read_infodb_entry($infodbtype, $arcinfo_src_filename, $file); 1111 1113 my $oids = $src_rec->{'oid'}; 1112 1114 my $file_record_deleted = 0; … … 1121 1123 1122 1124 # find the source doc (the primary file that becomes this oid) 1123 my $doc_rec_string = &dbutil::read_infodb_entry($infodbtype, $arcinfo_doc_filename, $oid); 1124 my $doc_rec = &dbutil::convert_infodb_string_to_hash($doc_rec_string); 1125 my $doc_rec = &dbutil::read_infodb_entry($infodbtype, $arcinfo_doc_filename, $oid); 1125 1126 my $doc_source_file = $doc_rec->{'src-file'}->[0]; 1126 1127 if (!&util::filename_is_absolute($doc_source_file)) { … … 1142 1143 # mark oid for deletion (it will be deleted or reimported) 1143 1144 $archive_info->set_status_info($oid,"D"); 1144 my $val = &dbutil::read_infodb_ entry($infodbtype, $arcinfo_doc_filename, $oid);1145 my $val = &dbutil::read_infodb_rawentry($infodbtype, $arcinfo_doc_filename, $oid); 1145 1146 $val =~ s/^<index-status>(.*)$/<index-status>D/m; 1146 1147
Note:
See TracChangeset
for help on using the changeset viewer.