mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02: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 8325d61659
)
This commit is contained in:
parent
f795a0d59e
commit
3a4b96e665
1 changed files with 6 additions and 4 deletions
|
@ -833,8 +833,9 @@ build_pk_list( STRLIST rcpts, PK_LIST *ret_pk_list, unsigned int use )
|
|||
if (key_present_in_pk_list(pk_list, pk) == 0)
|
||||
{
|
||||
free_public_key (pk); pk = NULL;
|
||||
log_info (_("%s: skipped: public key already present\n"),
|
||||
rov->d);
|
||||
if (!opt.quiet)
|
||||
log_info (_("%s: skipped: public key already present\n"),
|
||||
rov->d);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1113,8 +1114,9 @@ build_pk_list( STRLIST rcpts, PK_LIST *ret_pk_list, unsigned int use )
|
|||
if (!key_present_in_pk_list(pk_list, pk))
|
||||
{
|
||||
free_public_key(pk); pk = NULL;
|
||||
log_info(_("%s: skipped: public key already present\n"),
|
||||
remusr->d);
|
||||
if (!opt.quiet)
|
||||
log_info(_("%s: skipped: public key already present\n"),
|
||||
remusr->d);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue