The test for my key didn't include the .gz file extension, so the
key database wasn't getting created upon initial install.
onak (0.4.2-1+git) unstable; urgency=low
* Development build
+ * Fix issue with pre-seeding key database on install.
-- Jonathan McDowell <noodles@earth.li> Sun, 06 Oct 2013 13:18:38 +0100
if grep -q "^db_dir /var/lib/onak" /etc/onak.conf &&
grep -q "^db_backend db4" /etc/onak.conf &&
[ ! -e /var/lib/onak/num_keydb -a \
- -e /usr/share/doc/onak/noodles.key ]; then
+ -e /usr/share/doc/onak/noodles.key.gz ]; then
zcat /usr/share/doc/onak/noodles.key | onak -b add
fi