#!/bin/sh -e

if [ "$1" = configure ]
then
    # rename (and prename) is now only provided by the rename package
    update-alternatives --remove rename /usr/bin/prename

    if which dpkg-trigger >/dev/null 2>&1 && \
       [ -n "$2" ] && \
       dpkg --compare-versions "$2" lt 5.40.0~
    then
        dpkg-trigger --no-await perl-major-upgrade
    fi
fi



exit 0
