aboutsummaryrefslogtreecommitdiff
path: root/sbopkglint.d/30-manpages.t.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sbopkglint.d/30-manpages.t.sh')
-rw-r--r--sbopkglint.d/30-manpages.t.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/sbopkglint.d/30-manpages.t.sh b/sbopkglint.d/30-manpages.t.sh
index 4264d86..0bc4a96 100644
--- a/sbopkglint.d/30-manpages.t.sh
+++ b/sbopkglint.d/30-manpages.t.sh
@@ -35,9 +35,7 @@ check_gzipped_page() {
BADPERMS+="$f "
fi
- if [ "$( file -L -b --mime-type "$f" )" != "application/gzip" ]; then
- NOTGZIPPED+="$f "
- fi
+ is_gzipped "$f" || NOTGZIPPED+="$f "
# I have ~42,000 man pages on my dev box, file(1) fails to identify
# 12 of them as troff, but adding the check for .T catches them all.
@@ -134,7 +132,7 @@ if [ -d usr/man ]; then
[ -n "$BADDIRPERMS" ] && warn "bad man directory owner/permissions (should be 0755, root:root)" && ls -ld $BADDIRPERMS
[ -n "$BADDIRS" ] && warn "bad directory names in /usr/man:" && ls -ld $BADDIRS
[ -n "$BADNAMES" ] && warn "bad man page names (not *.gz):" && ls -ld $BADNAMES
- [ -n "$NOTGZIPPED" ] && warn "non-gzip (but named *.gz) man pages:" && ls -ld $NOTGZIPPED
+ [ -n "$NOTGZIPPED" ] && warn "non-gzipiped (but named *.gz) man pages:" && ls -ld $NOTGZIPPED
[ -n "$NONTROFF" ] && warn "invalid man pages (not troff):" && ls -ld $NONTROFF
[ -n "$WRONGSECT" ] && warn "man pages in wrong section:" && ls -ld $WRONGSECT
fi