From: Michael Tremer Date: Mon, 6 Jan 2025 23:01:31 +0000 (+0000) Subject: stripper: Never try to strip any firmware X-Git-Tag: 0.9.30~509 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cac3d1e4d200b3272cac044077ff206997ced9e3;p=pakfire.git stripper: Never try to strip any firmware Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/stripper.c b/src/pakfire/stripper.c index ec4ae95d1..2d8cece71 100644 --- a/src/pakfire/stripper.c +++ b/src/pakfire/stripper.c @@ -164,6 +164,10 @@ static int pakfire_stripper_find_elf( struct pakfire_stripper* stripper = data; int r; + // Never try to strip any firmware + if (pakfire_file_matches(file, "/usr/lib/firmware/**")) + return 0; + // Add ELF files to the filelist if (pakfire_file_matches_class(file, PAKFIRE_FILE_ELF)) { r = pakfire_filelist_add(stripper->filelist, file);