From 3676be6e4d5e14014baceed5b6fcf135a2ecee82 Mon Sep 17 00:00:00 2001 From: Helmut Pozimski Date: Thu, 16 Jul 2020 19:44:01 +0200 Subject: [PATCH] 11-pkglint-elf-in-usrshare: allow explicit setting of exceptions --- common/hooks/post-install/11-pkglint-elf-in-usrshare.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/hooks/post-install/11-pkglint-elf-in-usrshare.sh b/common/hooks/post-install/11-pkglint-elf-in-usrshare.sh index ff4f7789e86..02ca1c11bee 100644 --- a/common/hooks/post-install/11-pkglint-elf-in-usrshare.sh +++ b/common/hooks/post-install/11-pkglint-elf-in-usrshare.sh @@ -18,7 +18,11 @@ hook() { case "${mime}" in # Note application/x-executable is missing which is present in most Electron apps application/x-sharedlib*|application/x-pie-executable*) - matches+=" ${file#$PKGDESTDIR}" ;; + if ! [[ ${ignore_in_usr_share} =~ $(basename ${file#$PKGDESTDIR}) ]] + then + matches+=" ${file#$PKGDESTDIR}" + fi + ;; esac done < <(find $PKGDESTDIR/usr/share -type f | file --mime-type --files-from -)