generate_firmware_patterns: make sure dep11 metadata files are present

Otherwise we might be failing to generate firmware patterns for some
firmware packages. Being cautious about this lets us submit patches
against dak: https://salsa.debian.org/ftp-team/dak/-/merge_requests/267
This commit is contained in:
Cyril Brulebois 2023-01-21 16:33:35 +01:00
parent a2378ed25d
commit 8c497447f9
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ write_file("$output_dir/README.txt",
# Components-* files: # Components-* files:
my @all_packages; my @all_packages;
foreach my $component (@ARGV) { foreach my $component (@ARGV) {
die "missing metadata file $component"
if ! -f $component;
my @packages = process_components($component); my @packages = process_components($component);
push @all_packages, @packages; push @all_packages, @packages;
} }