pre_upgrade() {
	if (( $(vercmp "$2" 5.0-2) < 0 )); then

	cat <<EOM

:: Swayimg version 5.0.0 changes the configuration filename and format and some
   default configuration settings. Users who have configured Swayimg should
   migrate their configuration files. See the upstream documentation:

   https://github.com/artemsen/swayimg/blob/v5.0/CONFIG.md

EOM
	fi
}
