summaryrefslogtreecommitdiffstats
path: root/abs/core/man-db/man-db.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 17:35:42 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 17:35:42 (GMT)
commit9f150385ab6989b7163d912858fd600aae652ed7 (patch)
tree85a5e41661352c4152a81845083349330de542a5 /abs/core/man-db/man-db.install
parent4fe0a91dc41e4f497a8aa5497c21799060d5fddd (diff)
downloadlinhes_pkgbuild-9f150385ab6989b7163d912858fd600aae652ed7.zip
linhes_pkgbuild-9f150385ab6989b7163d912858fd600aae652ed7.tar.gz
linhes_pkgbuild-9f150385ab6989b7163d912858fd600aae652ed7.tar.bz2
man-db 2.6.2
Diffstat (limited to 'abs/core/man-db/man-db.install')
-rw-r--r--abs/core/man-db/man-db.install6
1 files changed, 5 insertions, 1 deletions
diff --git a/abs/core/man-db/man-db.install b/abs/core/man-db/man-db.install
index 6a0f36b..f6f0f27 100644
--- a/abs/core/man-db/man-db.install
+++ b/abs/core/man-db/man-db.install
@@ -10,9 +10,13 @@ post_upgrade() {
echo "run \"userdel man\". please also"
echo "chown root:root /var/cache/man"
fi
+ # force database rebuild to get rid off badly imported pages
+ if [ "`vercmp $2 2.6.0.2`" -lt 0 ]; then
+ echo "(re)building database..."
+ mandb -c --quiet
+ fi
}
post_remove() {
rm -rf /var/cache/man
}
-