make_disc_trees.pl: fix block calculation for multi-arch

Per-package metadata files ($p.patterns and $p.component) go together,
and both needed to be accounted for.
This commit is contained in:
Cyril Brulebois 2023-01-27 00:37:06 +01:00
parent 9fcb750948
commit 5e39a81adb
1 changed files with 1 additions and 0 deletions

View File

@ -1229,6 +1229,7 @@ sub add_firmware_stuff {
# (e.g. multi-arch), in which case we'll replace it here
if (-f "$dir/firmware/dep11/$p.patterns") {
$blocks_added -= get_file_blocks("$dir/firmware/dep11/$p.patterns");
$blocks_added -= get_file_blocks("$dir/firmware/dep11/$p.component");
}
msg_ap(0, "(Maybe) generate fw pattern file $dir/firmware/dep11/$p.patterns\n");