#!/bin/sh

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  if [ "$(vercmp $2 7.0.0.r3.g7736133-1.0)" -lt 0 ]; then
    echo "Removing depreciated SyncFirst line from pacman.conf file ..."
    sed -i -e '/# If upgrades are available for these packages they will be asked for first/d' /etc/pacman.conf
    sed -i -e '/SyncFirst/d' /etc/pacman.conf
  fi
}
