We're creating the database as part of package install, which then means
we can't remove /var/lib/onak on package purge. Delete the created
database files so we cleanup fully.
+onak (0.6.3-1+git) UNRELEASED; urgency=low
+
+ * Development snapshot
+ * Cleanup database files on package purge (Closes: #1053323)
+
+ -- Jonathan McDowell <noodles@earth.li> Tue, 15 Jul 2025 10:21:10 +0100
+
onak (0.6.3-1) unstable; urgency=low
* New upstream release
fi
rm -f /var/log/onak.log /var/log/onak.log.1 /var/log/onak.log.*.gz
+
+ # Clean up any key databases, if they exist
+ if [ -d /var/lib/onak -a ! -z "$(ls -A /var/lib/onak)" ]; then
+ rm -f /var/lib/onak/*
+ fi
fi
#DEBHELPER#