mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-09 12:54:23 +01:00
gpg: Suppress "public key already present" in quiet mode.
* g10/pkclist.c (build_pk_list): Print two diagnostics only in non-quiet mode. -- (back-ported from commit 8325d616593187ff227853de0295e3269b96edcb)
This commit is contained in:
parent
f795a0d59e
commit
3a4b96e665
@ -833,6 +833,7 @@ build_pk_list( STRLIST rcpts, PK_LIST *ret_pk_list, unsigned int use )
|
|||||||
if (key_present_in_pk_list(pk_list, pk) == 0)
|
if (key_present_in_pk_list(pk_list, pk) == 0)
|
||||||
{
|
{
|
||||||
free_public_key (pk); pk = NULL;
|
free_public_key (pk); pk = NULL;
|
||||||
|
if (!opt.quiet)
|
||||||
log_info (_("%s: skipped: public key already present\n"),
|
log_info (_("%s: skipped: public key already present\n"),
|
||||||
rov->d);
|
rov->d);
|
||||||
}
|
}
|
||||||
@ -1113,6 +1114,7 @@ build_pk_list( STRLIST rcpts, PK_LIST *ret_pk_list, unsigned int use )
|
|||||||
if (!key_present_in_pk_list(pk_list, pk))
|
if (!key_present_in_pk_list(pk_list, pk))
|
||||||
{
|
{
|
||||||
free_public_key(pk); pk = NULL;
|
free_public_key(pk); pk = NULL;
|
||||||
|
if (!opt.quiet)
|
||||||
log_info(_("%s: skipped: public key already present\n"),
|
log_info(_("%s: skipped: public key already present\n"),
|
||||||
remusr->d);
|
remusr->d);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user