man-db.install 222 B

123456789101112
  1. post_upgrade() {
  2. # force database rebuild as recommended per upstream
  3. if [ "`vercmp $2 2.7.0`" -lt 0 ]; then
  4. echo "(re)building database..."
  5. mandb -c --quiet
  6. fi
  7. }
  8. post_remove() {
  9. rm -rf /var/cache/man
  10. }