1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-04 20:38:50 +01:00

gpg: Avoid cluttering stdout with trustdb info in verbose mode.

* g10/trustdb.c (validate_keys): Call dump_key_array only in debug
mode.
--

I guess that is a left-over from an early attempt to output
information on the trustdb for use by other tools.  Maybe related to
the former --list-trust-path command.  Sending it to stdout is
probably useful so we do this now only in debug mode.

Signed-off-by: Werner Koch <wk@gnupg.org>

Backported to STABLE-BRANCH-2-0 from
b03a264729 by dkg
This commit is contained in:
Werner Koch 2015-05-08 16:30:04 +02:00
parent 60b0403f3c
commit 0b01bb7f25
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -2445,7 +2445,7 @@ validate_keys (int interactive)
;
/* Store the calculated valididation status somewhere */
if (opt.verbose > 1)
if (opt.verbose > 1 && DBG_TRUST)
dump_key_array (depth, keys);
for (kar=keys; kar->keyblock; kar++)