diff options
author | Daniel Kahn Gillmor <[email protected]> | 2015-02-21 16:04:13 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-03-04 13:31:45 +0000 |
commit | 82146af85b65498a69b28913593dc1ffeb6b6fed (patch) | |
tree | 7be39ebc3be2ccb7068a4d3d55b4832ebf073660 | |
parent | gpg: Lowercase mailbox for PKA lookups. (diff) | |
download | gnupg-82146af85b65498a69b28913593dc1ffeb6b6fed.tar.gz gnupg-82146af85b65498a69b28913593dc1ffeb6b6fed.zip |
gpg: avoid chatter about trustdb when --quiet
* g10/trustdb.c (tdb_check_trustdb_stale): avoid log_info() when
opt.quiet
--
gpg(1) says:
-q, --quiet
Try to be as quiet as possible.
While the mentions about the stale trustdb information are edifying,
they aren't necessary, and shouldn't be emitted when the user requests
--quiet.
Signed-off-by: Daniel Kahn Gillmor <[email protected]>
-rw-r--r-- | g10/trustdb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c index f0b550130..6145cf0e9 100644 --- a/g10/trustdb.c +++ b/g10/trustdb.c @@ -938,11 +938,13 @@ tdb_check_trustdb_stale (void) if (opt.no_auto_check_trustdb) { pending_check_trustdb = 1; - log_info (_("please do a --check-trustdb\n")); + if (!opt.quiet) + log_info (_("please do a --check-trustdb\n")); } else { - log_info (_("checking the trustdb\n")); + if (!opt.quiet) + log_info (_("checking the trustdb\n")); validate_keys (0); } } |