mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
gpg: Suppress "public key already present" in quiet mode.
* g10/pkclist.c (find_and_check_key, build_pk_list): Print a diagnostic only in non-quiet mode.
This commit is contained in:
parent
5a66316ea4
commit
8325d61659
@ -837,6 +837,7 @@ find_and_check_key (ctrl_t ctrl, const char *name, unsigned int use,
|
||||
list. */
|
||||
if (!key_present_in_pk_list (*pk_list_addr, pk))
|
||||
{
|
||||
if (!opt.quiet)
|
||||
log_info (_("%s: skipped: public key already present\n"), name);
|
||||
free_public_key (pk);
|
||||
}
|
||||
@ -945,6 +946,7 @@ build_pk_list (ctrl_t ctrl,
|
||||
if (key_present_in_pk_list(pk_list, pk) == 0)
|
||||
{
|
||||
free_public_key (pk); pk = NULL;
|
||||
if (!opt.quiet)
|
||||
log_info (_("%s: skipped: public key already present\n"),
|
||||
rov->d);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user