From 0b01bb7f253fc1f9422e59dc475fa86854b46f69 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 8 May 2015 16:30:04 +0200 Subject: 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 Backported to STABLE-BRANCH-2-0 from b03a2647299a6c8764a2574590cbaccdff9e497d by dkg --- g10/trustdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g10/trustdb.c b/g10/trustdb.c index 11b6a2662..9b49b06e1 100644 --- a/g10/trustdb.c +++ b/g10/trustdb.c @@ -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++) -- cgit v1.2.3