diff options
Diffstat (limited to 'core/man-db/man-db.install')
-rw-r--r-- | core/man-db/man-db.install | 6 |
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 } - |