# arg 1: the new package version # arg 2: the old package version post_upgrade() { if [ "$(vercmp $2 2.1.3-3)" -lt 0 -a -e /etc/syslog-ng.conf.pacnew ]; then echo "Attention syslog-ng update:" echo "Configuration file syntax has changed. Make sure to update /etc/syslog-ng.conf" fi } op=$1 shift $op $*