make_disc_trees.pl: fix block calculation for --rollback

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 5e39a81adb
commit 8bba3df865
1 changed files with 4 additions and 0 deletions

View File

@ -1488,6 +1488,10 @@ sub remove_firmware_stuff {
$blocks_removed += get_file_blocks("$dir/firmware/dep11/$p.patterns");
msg_ap(0, "Remove $dir/firmware/dep11/$p.patterns\n");
unlink("$dir/firmware/dep11/$p.patterns");
$blocks_removed += get_file_blocks("$dir/firmware/dep11/$p.component");
msg_ap(0, "Remove $dir/firmware/dep11/$p.component\n");
unlink("$dir/firmware/dep11/$p.component");
}
# Find the current size of the firmware Contents file, and grep