Skip to content

Commit

Permalink
Item13313: Report any "attachments" that were skipped
Browse files Browse the repository at this point in the history
If a pub file does not have a corresponding %META::FILEATTACHMENT
it is not converted to the new store.  Report it as it might be an
autoattached file that was not covered in a toipc save.
  • Loading branch information
gac410 committed Mar 22, 2015
1 parent e5b3d4d commit 50e5bfd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions PlainFileStoreContrib/tools/change_store.pl
Expand Up @@ -291,8 +291,17 @@ sub validate_info {
my $att_info = $top_meta->get( 'FILEATTACHMENT', $att_name );

# Is there info about this attachment in this rev of the
# topic? If not, we can't do anything useful.
next unless $att_info;
# topic? If not, we can't do anything useful. Note if the
# attachment is missing from the "top rev", report the file
# as it may be a valuable autoattached file.
unless ($att_info) {
if ( \$topic_version == \$top_rev_list[0] ) {
print "NO META FOR ATTACHMENT: File not copied! "
if ($verbose);
print "$top_name/$att_name\n";
}
next;
}
my $att_version = $att_info->{version};
my $att_user = $att_info->{author};

Expand Down

0 comments on commit 50e5bfd

Please sign in to comment.