aboutsummaryrefslogtreecommitdiff
path: root/sbopkglint.d/05-basic-sanity.t.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sbopkglint.d/05-basic-sanity.t.sh')
-rw-r--r--sbopkglint.d/05-basic-sanity.t.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/sbopkglint.d/05-basic-sanity.t.sh b/sbopkglint.d/05-basic-sanity.t.sh
index c0eb9b7..562dbc5 100644
--- a/sbopkglint.d/05-basic-sanity.t.sh
+++ b/sbopkglint.d/05-basic-sanity.t.sh
@@ -45,7 +45,7 @@ nofiledirs="usr usr/doc usr/share usr/man usr/doc/HTML"
# files +x.
noexecdirs="usr/man usr/share/pixmaps usr/share/icons usr/share/applications usr/share/appdata usr/share/mime usr/share/mime-info usr/share/glib-2.0 usr/doc/HTML"
-# these files must exist.
+# these files must exist, unless -s option given.
requiredfiles="usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild"
# these files must not exist.
@@ -132,9 +132,11 @@ for i in $nofiledirs; do
[ -n "$badstuff" ] && warn "$i should only contain directories, not:" && ls -ld $badstuff
done
-for i in $requiredfiles; do
- [ -f "$i" ] || warn "missing required file: $i"
-done
+if [ -z "$SLACKBUILD_MISSING_OK" ]; then
+ for i in $requiredfiles; do
+ [ -f "$i" ] || warn "missing required file: $i"
+ done
+fi
for i in $noexecdirs; do
[ -d "$i" ] || continue