#!/bin/sh

set -e

case "$1" in
    install|upgrade)
	dpkg-divert --package @PVER@-nopie \
	    --add --rename \
	    --divert /usr/bin/@PVER@-pie /usr/bin/@PVER@
    ;;
    upgrade)
	:
    ;;

    abort-upgrade)
    ;;

    *)
        echo "preinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0
