summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
243c905)
If the Debian package detected no keyring database on installation it
would seed the database with my key, from
/usr/share/doc/onak/noodles.key.gz. This is against Debian policy 12.3 -
packages cannot require files from /usr/share/doc/ to function. Only
seed the database if the file exists, avoiding issues installing when
skipping /usr/share/doc/
Fixes Debian bug #710665.
* Development build
* Switch to source format 3.0 (quilt).
* Development build
* Switch to source format 3.0 (quilt).
+ * Only seed initial database if key file is available. (Closes: #710665)
-- Jonathan McDowell <noodles@earth.li> Tue, 24 Apr 2012 21:54:17 -0700
-- Jonathan McDowell <noodles@earth.li> Tue, 24 Apr 2012 21:54:17 -0700
#
if grep -q "^db_dir /var/lib/onak" /etc/onak.conf &&
grep -q "^db_backend db4" /etc/onak.conf &&
#
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 ]; then
+ [ ! -e /var/lib/onak/num_keydb -a \
+ -e /usr/share/doc/onak/noodles.key ]; then
zcat /usr/share/doc/onak/noodles.key | onak -b add
fi
zcat /usr/share/doc/onak/noodles.key | onak -b add
fi