#!/bin/sh -e

APT_CONF=/etc/apt/apt.conf.d/90debsums

. /usr/share/debconf/confmodule
db_get debsums/apt-autogen

if [ "$RET" = true ];
then
    echo 'DPkg::Post-Invoke { "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums --generate=nocheck -sp /var/cache/apt/archives; fi"; };' >$APT_CONF
else
    rm -f $APT_CONF
fi

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
