--- /var/abs/extra/network/transmission/transmission.install 2008-02-12 22:06:42.000000000 +0100 +++ transmission.install 2008-04-14 14:53:29.000000000 +0200 @@ -1,6 +1,5 @@ # arg 1: the new package version post_install() { - cat << EOM ==> transmission post-install message: @@ -15,6 +14,8 @@ EOM +else + update-desktop-database -q fi cat << EOM @@ -36,3 +37,10 @@ echo -e "\n==> COMPLETE YOUR DOWNLOADS BEFORE UPGRADING TRANSMISSION OR YOU WILL LOSE DATA." fi } + +post_remove() { + LANG=en_US pacman -Q gtk2 2>&1 | grep error &>/dev/null + if [ $? = 1 ]; then + update-desktop-database -q + fi +}