aboutsummaryrefslogtreecommitdiff
path: root/sbopkglint.d/pre-doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sbopkglint.d/pre-doinst.sh')
-rw-r--r--sbopkglint.d/pre-doinst.sh5
1 files changed, 5 insertions, 0 deletions
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