man-pages: only exec mandb at postinst if available.

This commit is contained in:
Juan RP 2012-09-14 20:45:19 +02:00
parent 24072d83fd
commit 28bbccbb1a
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
# Rebuild mandb cache.
case "${ACTION}" in
post)
mandb -q || exit 1
if [ -x usr/bin/mandb ]; then
usr/bin/mandb -q || exit 1
fi
;;
esac

View File

@ -1,7 +1,7 @@
# Template file for 'man-pages'
pkgname=man-pages
version=3.42
revision=2
revision=3
noarch=yes
short_desc="Linux Documentation Project manual pages"
maintainer="Juan RP <xtraeme@gmail.com>"