From 8b5cb544a8a1d9274a072990b13bb1d3cb2f6ab2 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-1-4 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 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++) -- cgit v1.2.3