#!/bin/sh
# In corekeeper, this is the only file outside /etc on all arches.
# So this is the only file available to detect a purged package.
if [ ! -e /usr/share/lintian/overrides/corekeeper ] ; then
	exit 0
fi
find /var/crash -name '*.core' \( \( -mtime +7 -delete -printf 'Deleted core file: %p\n' \) -o \( -printf 'Remaining core file: %p\n' \) \) | sort
