mirror of
git://git.gnupg.org/gnupg.git
synced 2025-05-24 16:43:28 +02:00
gpg: Silence trustdb computation with --quiet.
* g10/trustdb.c (validate_keys): Do not print log_info stuff in quiet mode. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
1aad5c6277
commit
af9a4afbf0
@ -1962,8 +1962,9 @@ validate_keys (int interactive)
|
|||||||
|
|
||||||
klist = utk_list;
|
klist = utk_list;
|
||||||
|
|
||||||
log_info ("marginals needed: %d completes needed: %d trust model: %s\n",
|
if (!opt.quiet)
|
||||||
opt.marginals_needed, opt.completes_needed, trust_model_string ());
|
log_info ("marginals needed: %d completes needed: %d trust model: %s\n",
|
||||||
|
opt.marginals_needed, opt.completes_needed, trust_model_string());
|
||||||
|
|
||||||
for (depth=0; depth < opt.max_cert_depth; depth++)
|
for (depth=0; depth < opt.max_cert_depth; depth++)
|
||||||
{
|
{
|
||||||
@ -2048,10 +2049,11 @@ validate_keys (int interactive)
|
|||||||
for (kar=keys; kar->keyblock; kar++)
|
for (kar=keys; kar->keyblock; kar++)
|
||||||
store_validation_status (depth, kar->keyblock, stored);
|
store_validation_status (depth, kar->keyblock, stored);
|
||||||
|
|
||||||
log_info (_("depth: %d valid: %3d signed: %3d"
|
if (!opt.quiet)
|
||||||
" trust: %d-, %dq, %dn, %dm, %df, %du\n"),
|
log_info (_("depth: %d valid: %3d signed: %3d"
|
||||||
depth, valids, key_count, ot_unknown, ot_undefined,
|
" trust: %d-, %dq, %dn, %dm, %df, %du\n"),
|
||||||
ot_never, ot_marginal, ot_full, ot_ultimate );
|
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 */
|
/* Build a new kdlist from all fully valid keys in KEYS */
|
||||||
if (klist != utk_list)
|
if (klist != utk_list)
|
||||||
@ -2120,8 +2122,9 @@ validate_keys (int interactive)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
tdbio_write_nextcheck (next_expire);
|
tdbio_write_nextcheck (next_expire);
|
||||||
log_info (_("next trustdb check due at %s\n"),
|
if (!opt.quiet)
|
||||||
strtimestamp (next_expire));
|
log_info (_("next trustdb check due at %s\n"),
|
||||||
|
strtimestamp (next_expire));
|
||||||
}
|
}
|
||||||
|
|
||||||
rc2 = tdbio_update_version_record ();
|
rc2 = tdbio_update_version_record ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user