Fix noisy error in make_disc_trees.pl

firmware/dep11 only exists on the first image, so don't run
md5_files_for_md5sum on it if doesn't exist
This commit is contained in:
Steve McIntyre 2023-02-18 22:12:42 +00:00
parent ecb6ec4a0a
commit c5ff679857
1 changed files with 5 additions and 1 deletions

View File

@ -928,7 +928,11 @@ sub finish_disc {
print " Finishing off md5sum.txt\n"; print " Finishing off md5sum.txt\n";
# Just md5 the bits we won't have seen already # Just md5 the bits we won't have seen already
open(MD5LIST, ">>md5sum.txt") or die "Failed to open md5sum.txt file: $!\n"; open(MD5LIST, ">>md5sum.txt") or die "Failed to open md5sum.txt file: $!\n";
find (\&md5_files_for_md5sum, ("./.disk", "./dists", "./firmware/dep11")); foreach my $dir ("./.disk", "./dists", "./firmware/dep11") {
if (-d $dir) {
find (\&md5_files_for_md5sum, $dir);
}
}
close(MD5LIST); close(MD5LIST);
# And sort; it should make things faster for people checking # And sort; it should make things faster for people checking