jobcore/man-db/man-db.install

12 lines
222 B
Plaintext

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