diff options
author | B. Watson <urchlay@slackware.uk> | 2023-06-17 03:04:13 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2023-06-17 03:04:13 -0400 |
commit | c8407a74a3013f09495edba29705c7b481e46f19 (patch) | |
tree | f879936cc879e9dc5f01d86ae3ce32b1d104cabe | |
parent | 6790aad25e53fd17093d2576a495191fdee4379f (diff) | |
download | sbo-maintainer-tools-c8407a74a3013f09495edba29705c7b481e46f19.tar.gz |
sbopkglint: spaces in filenames WIP #8.
-rw-r--r-- | sbopkglint.d/pre-doinst.sh | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/sbopkglint.d/pre-doinst.sh b/sbopkglint.d/pre-doinst.sh index e00163a..5beb6a2 100644 --- a/sbopkglint.d/pre-doinst.sh +++ b/sbopkglint.d/pre-doinst.sh @@ -26,21 +26,15 @@ var/cache/fontconfig/CACHEDIR.TAG \ var/cache/man/usr-man/CACHEDIR.TAG" for i in $badfiles; do - if [ -e "$i" ]; then - warn "package contains forbidden file: $i" - fi + [ -e "$i" ] && warn "package contains forbidden file: $i" done if [ -d usr/share/fonts ]; then - badfontstuff="$( find usr/share/fonts -name 'fonts.*' )" - if [ -n "$badfontstuff" ]; then - warn "package contains forbidden file(s): $badfontstuff" - fi + find_warnfiles "package contains forbidden file(s):" \ + usr/share/fonts -name 'fonts.*' fi -badlinks="$( find -P . -type l )" -if [ -n "$badlinks" ]; then - warn "package contains actual symlinks: $badlinks" -fi +find_warnfiles "package contains actual symlinks:" \ + find -P . -type l [ -f install/slack-desc ] || warn "required file install/slack-desc is missing" |