diff options
| -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 |
