post_install() {
  update-mime-database /usr/share/mime > /dev/null 2>&1
}

post_upgrade() {
  post_install $1
}

op=$1
shift

$op $*