aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-05-08 14:30:04 +0000
committerNeal H. Walfield <[email protected]>2015-11-20 12:23:31 +0000
commit8b5cb544a8a1d9274a072990b13bb1d3cb2f6ab2 (patch)
tree027ee6924aa38d3d98be90d644d6df9c3396aba1
parentgpg: Silence a compiler warning. (diff)
downloadgnupg-8b5cb544a8a1d9274a072990b13bb1d3cb2f6ab2.tar.gz
gnupg-8b5cb544a8a1d9274a072990b13bb1d3cb2f6ab2.zip
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 <[email protected]> Backported to STABLE-BRANCH-1-4 from b03a2647299a6c8764a2574590cbaccdff9e497d by dkg
-rw-r--r--g10/trustdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c
index e4317e2f5..1e3ef5f1a 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -2435,7 +2435,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++)