summaryrefslogtreecommitdiffstats
path: root/abs/core/man-db/man-db.install
diff options
context:
space:
mode:
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
}
-