# workaround for bsdmainutils transitional package, we can drop this as soon as the
# bsdextrautils + ncal packages are available in all our supported Debian releases
-# (FTR: the transitional bsdmainutils package currently depends on
-# bsdextrautils bsdutils calendar debianutils ncal)
if [[ -r "${target}/usr/share/doc/bsdmainutils" ]] && [ -x "${target}/usr/bin/deborphan" ] ; then
echo "Adding bsdmainutils to deborphan whitelist"
# workaround for https://bugs.debian.org/929273 ("fseek on /var/lib/deborphan/keep: Invalid argument")