mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 14:17:02 +02:00
11-pkglint-elf-in-usrshare: use file --no-pad so we don't have to strip it
This commit is contained in:
parent
ad9e2b1b70
commit
d36120c73d
1 changed files with 2 additions and 3 deletions
|
@ -24,8 +24,7 @@ hook() {
|
|||
|
||||
# Find all binaries in /usr/share and add them to the pool
|
||||
while read -r f; do
|
||||
mime="${f##*:}"
|
||||
mime="${mime// /}"
|
||||
mime="${f##*: }"
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue