make_disc_trees.pl: use write_file() for .component files as well

This commit is contained in:
Cyril Brulebois 2023-01-25 01:38:34 +01:00
parent 957ee269b4
commit 214e2dd88c
1 changed files with 2 additions and 3 deletions

View File

@ -1238,9 +1238,8 @@ sub add_firmware_stuff {
if (-f "$dir/firmware/dep11/$p.patterns") { 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.patterns");
# Make sure apt-setup can be configured appropriately: # Make sure apt-setup can be configured appropriately:
open(CFILE, ">$dir/firmware/dep11/$p.component"); write_file("$dir/firmware/dep11/$p.component", $component)
print CFILE $component; or die "unable to create $dir/firmware/dep11/$p.component";
close CFILE;
$blocks_added += get_file_blocks("$dir/firmware/dep11/$p.component"); $blocks_added += get_file_blocks("$dir/firmware/dep11/$p.component");
} }