diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-10-10 19:33:32 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-10-20 04:14:16 -0400 |
| commit | 5411886d1080fafbbd1384a9c2f52d47b16e2495 (patch) | |
| tree | 88f0c1255e4d817c2426ede354740ee4d2e75b5f | |
| parent | 60837596f97570601b3111dbd5e098b684fe1032 (diff) | |
| download | sbo-maintainer-tools-5411886d1080fafbbd1384a9c2f52d47b16e2495.tar.gz | |
sbopkglint: move empty log file check to pre-doinst.sh
| -rw-r--r-- | sbopkglint.d/05-basic-sanity.t.sh | 3 | ||||
| -rw-r--r-- | sbopkglint.d/pre-doinst.sh | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sbopkglint.d/05-basic-sanity.t.sh b/sbopkglint.d/05-basic-sanity.t.sh index b0afb94..8765bcc 100644 --- a/sbopkglint.d/05-basic-sanity.t.sh +++ b/sbopkglint.d/05-basic-sanity.t.sh @@ -224,8 +224,5 @@ for i in bin sbin usr/bin usr/sbin; do fi done -find_warnfiles "invalid file in /var/log (only 0-byte .new files allowed)" \ - var/log -type f -a \! \( -empty -a -name '*.new' \) - find_warnfiles "package contains files owned by UID/GID >= 1000" \ . \( -uid +999 -o -gid +999 \) diff --git a/sbopkglint.d/pre-doinst.sh b/sbopkglint.d/pre-doinst.sh index 6499240..14f745c 100644 --- a/sbopkglint.d/pre-doinst.sh +++ b/sbopkglint.d/pre-doinst.sh @@ -48,6 +48,11 @@ find_warnfiles "package contains actual symlinks:" \ [ -f install/slack-desc ] || warn "required file install/slack-desc is missing" +if [ -d var/log ]; then + find_warnfiles "invalid file in /var/log (only 0-byte .new files allowed)" \ + var/log -type f -a \! \( -empty -a -name '*.new' \) +fi + # Next test is supposed to complain if the package is "empty". What # "empty" means is, there's nothing in the package outside of usr/doc # and install/. This happens when a SlackBuild doesn't do error checking |
