aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-03-31 08:33:30 +0000
committerWerner Koch <[email protected]>2016-03-31 10:46:07 +0000
commit458c2f2d32e4e784d3ef719a3439acc631c1fc69 (patch)
treef765ccea17c32e88de8cc2be1d516a1498927fb0
parentagent: Do not remove the ssh socket. (diff)
downloadgnupg-458c2f2d32e4e784d3ef719a3439acc631c1fc69.tar.gz
gnupg-458c2f2d32e4e784d3ef719a3439acc631c1fc69.zip
gpg: Silence trustdb messages with --quiet.
* g10/trustdb.c (validate_keys): Silence messages Signed-off-by: Werner Koch <[email protected]>
-rw-r--r--g10/trustdb.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c
index 9b49b06e1..c9c88913b 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -2451,10 +2451,11 @@ validate_keys (int interactive)
for (kar=keys; kar->keyblock; kar++)
store_validation_status (depth, kar->keyblock, stored);
- log_info (_("depth: %d valid: %3d signed: %3d"
- " trust: %d-, %dq, %dn, %dm, %df, %du\n"),
- depth, valids, key_count, ot_unknown, ot_undefined,
- ot_never, ot_marginal, ot_full, ot_ultimate );
+ if (!opt.quiet)
+ log_info (_("depth: %d valid: %3d signed: %3d"
+ " trust: %d-, %dq, %dn, %dm, %df, %du\n"),
+ depth, valids, key_count, ot_unknown, ot_undefined,
+ ot_never, ot_marginal, ot_full, ot_ultimate );
/* Build a new kdlist from all fully valid keys in KEYS */
if (klist != utk_list)
@@ -2520,8 +2521,9 @@ validate_keys (int interactive)
else
{
tdbio_write_nextcheck (next_expire);
- log_info (_("next trustdb check due at %s\n"),
- strtimestamp (next_expire));
+ if (!opt.quiet)
+ log_info (_("next trustdb check due at %s\n"),
+ strtimestamp (next_expire));
}
if(tdbio_update_version_record()!=0)