From 8c497447f9ca58c8487bd52000df2a2eef2a1b93 Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Sat, 21 Jan 2023 16:33:35 +0100 Subject: [PATCH] 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 --- tools/generate_firmware_patterns | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/generate_firmware_patterns b/tools/generate_firmware_patterns index 4b390302..ecc76253 100755 --- a/tools/generate_firmware_patterns +++ b/tools/generate_firmware_patterns @@ -94,6 +94,8 @@ write_file("$output_dir/README.txt", # Components-* files: my @all_packages; foreach my $component (@ARGV) { + die "missing metadata file $component" + if ! -f $component; my @packages = process_components($component); push @all_packages, @packages; }