summaryrefslogtreecommitdiff
path: root/core/man-db/man-db.install
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-04-16 13:48:38 +0000
committerroot <root@rshg047.dnsready.net>2011-04-16 13:48:38 +0000
commitec549f64c923643d4b13dd7d364e080840ae3e29 (patch)
treecb680711dd6875847036bbd555f4c2539e433690 /core/man-db/man-db.install
parent5d3c3e85c503dae5753d1b7e92b7cdc3b3a2b34b (diff)
Sat Apr 16 13:48:38 UTC 2011
Diffstat (limited to 'core/man-db/man-db.install')
-rw-r--r--core/man-db/man-db.install6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/man-db/man-db.install b/core/man-db/man-db.install
index 6a0f36b67..f6f0f27a6 100644
--- a/core/man-db/man-db.install
+++ b/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
}
-