lib/gpg: Print debug info when reading GPG keys
authorMatthew Leeds <mwleeds@protonmail.com>
Tue, 3 Oct 2017 05:35:17 +0000 (22:35 -0700)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 3 Oct 2017 13:09:33 +0000 (13:09 +0000)
commit133e9ae7338503d3143d172c92a7cac618e6735c
tree6b27c13c68a9a973c27f8316218221d43ca61dca
parentbe100e0ee26e6a4abb7865d13d4aaaa52d603759
lib/gpg: Print debug info when reading GPG keys

This commit adds debug output whenever libostree reads GPG keys, which
can come from different locations in the file system. This is especially
helpful in debugging "GPG signatures found, but none are in trusted
keyring" errors, which in my case was caused by OSTree looking in
/usr/local/share/ostree/trusted.gpg.d/ rather than
/usr/share/ostree/trusted.gpg.d/.

Closes: #1241
Approved by: cgwalters
src/libostree/ostree-gpg-verifier.c
src/libostree/ostree-gpg-verifier.h
src/libostree/ostree-repo.c