11-pkglint-elf-in-usrshare: use file --no-pad so we don't have to strip it

This commit is contained in:
Duncaen 2022-09-03 15:30:51 +02:00
parent ad9e2b1b70
commit d36120c73d
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35
1 changed files with 2 additions and 3 deletions

View File

@ -25,7 +25,6 @@ hook() {
# Find all binaries in /usr/share and add them to the pool
while read -r f; do
mime="${f##*: }"
mime="${mime// /}"
file="${f%:*}"
file="${file#${PKGDESTDIR}}"
case "${mime}" in
@ -37,7 +36,7 @@ hook() {
fi
;;
esac
done < <(find $PKGDESTDIR/usr/share $prune_expr -type f | file --mime-type --files-from -)
done < <(find $PKGDESTDIR/usr/share $prune_expr -type f | file --no-pad --mime-type --files-from -)
# Check passed if no packages in pool
if [ -z "$matches" ]; then