Add leading / to paths in Contents-firmware indices.

With this change, hw-detect's check-missing-firmware.sh can use grep -f
with a file listing absolute paths to required firmware files.
This commit is contained in:
Cyril Brulebois 2023-01-18 22:43:23 +01:00
parent 81baccabbf
commit 5aa89ab269
1 changed files with 1 additions and 1 deletions

View File

@ -1243,7 +1243,7 @@ sub add_firmware_stuff {
while (defined(my $line = <DPKGC>)) { while (defined(my $line = <DPKGC>)) {
chomp $line; chomp $line;
if ($line =~ m,^[-|l]\S+\s+\S+\s+\d+\s+\S+\s+\S+\s+./(\S+/firmware/\S+)$,) { if ($line =~ m,^[-|l]\S+\s+\S+\s+\d+\s+\S+\s+\S+\s+./(\S+/firmware/\S+)$,) {
printf OFILE "%-55s %s\n", $1, $base_file; printf OFILE "%-55s %s\n", "/$1", $base_file;
} }
} }
close DPKGC; close DPKGC;