generate_firmware_patterns: stop creating the output directory
The output directory's presence is the caller's responsibility; while it might have been useful during development, actual builds require make_disc_trees.pl to keep track of blocks getting added, so let it take care of fulfilling prerequisites.
This commit is contained in:
parent
2183089968
commit
9d95f65bd9
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
# © 2021 Cyril Brulebois <kibi@debian.org>
|
# © 2021-2023 Cyril Brulebois <kibi@debian.org>
|
||||||
#
|
#
|
||||||
# Generate ready-to-use .patterns files so that one can use grep to
|
# Generate ready-to-use .patterns files so that one can use grep to
|
||||||
# perform hardware to firmware-package lookups in the installer
|
# perform hardware to firmware-package lookups in the installer
|
||||||
|
@ -17,7 +17,6 @@
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use File::Path qw(make_path);
|
|
||||||
use File::Slurp;
|
use File::Slurp;
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
use YAML::XS;
|
use YAML::XS;
|
||||||
|
@ -80,12 +79,9 @@ sub process_components {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Prepare output directory:
|
# Make sure the output directory exists:
|
||||||
if (! -d $output_dir) {
|
die "missing output directory $output_dir"
|
||||||
print STDERR "creating output directory $output_dir\n"
|
if ! -d $output_dir;
|
||||||
if $verbose;
|
|
||||||
make_path($output_dir, { verbose => $verbose });
|
|
||||||
}
|
|
||||||
|
|
||||||
write_file("$output_dir/README.txt",
|
write_file("$output_dir/README.txt",
|
||||||
"These files help Debian Installer detect helpful firmware packages (via hw-detect).\n");
|
"These files help Debian Installer detect helpful firmware packages (via hw-detect).\n");
|
||||||
|
|
Loading…
Reference in New Issue