aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-05-08 14:30:04 +0000
committerWerner Koch <[email protected]>2015-09-08 12:42:37 +0000
commit0b01bb7f253fc1f9422e59dc475fa86854b46f69 (patch)
treeb496140188f8bae5a1349e5bc6d456bbb89a4d27
parentgpg: Obsolete --no-sig-create-check. (diff)
downloadgnupg-0b01bb7f253fc1f9422e59dc475fa86854b46f69.tar.gz
gnupg-0b01bb7f253fc1f9422e59dc475fa86854b46f69.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-2-0 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 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++)