1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

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 <dkg@fifthhorseman.net>
This commit is contained in:
Daniel Kahn Gillmor 2015-02-21 11:04:13 -05:00 committed by Werner Koch
parent c071be698e
commit 82146af85b
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -938,10 +938,12 @@ tdb_check_trustdb_stale (void)
if (opt.no_auto_check_trustdb) if (opt.no_auto_check_trustdb)
{ {
pending_check_trustdb = 1; pending_check_trustdb = 1;
if (!opt.quiet)
log_info (_("please do a --check-trustdb\n")); log_info (_("please do a --check-trustdb\n"));
} }
else else
{ {
if (!opt.quiet)
log_info (_("checking the trustdb\n")); log_info (_("checking the trustdb\n"));
validate_keys (0); validate_keys (0);
} }