From ec549f64c923643d4b13dd7d364e080840ae3e29 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 16 Apr 2011 13:48:38 +0000 Subject: Sat Apr 16 13:48:38 UTC 2011 --- core/man-db/man-db.install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/man-db/man-db.install') 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 } - -- cgit v1.2.3-54-g00ecf