summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2015-05-08 16:30:04 +0200
committerWerner Koch <wk@gnupg.org>2015-05-08 16:30:04 +0200
commitb03a2647299a6c8764a2574590cbaccdff9e497d (patch)
treed581d7fdfb8c929ce4740331561308fa71d7ff7f
parentgpg: Fix wrong output in list mode. (diff)
downloadgnupg2-b03a2647299a6c8764a2574590cbaccdff9e497d.tar.xz
gnupg2-b03a2647299a6c8764a2574590cbaccdff9e497d.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 <wk@gnupg.org>
-rw-r--r--g10/trustdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c
index 6145cf0e9..fda8674cb 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -1895,7 +1895,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++)