[Pkg-gnupg-commit] [gnupg2] 04/20: gpg: Print AKL info only in verbose mode.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Fri Dec 1 01:51:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit b062ea5bc25157c942047b3fe7f5182a06106340
Author: Werner Koch <wk at gnupg.org>
Date:   Wed Nov 15 08:47:32 2017 +0100

    gpg: Print AKL info only in verbose mode.
    
    * g10/getkey.c (get_pubkey_byname): Print info only in verbose mode.
    --
    
    GnuPG-bug-id: 3504
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 g10/getkey.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/g10/getkey.c b/g10/getkey.c
index c58e8ff..f73e443 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -1448,8 +1448,9 @@ get_pubkey_byname (ctrl_t ctrl, GETKEY_CTX * retctx, PKT_public_key * pk,
 	  if (!rc)
 	    {
 	      /* Key found.  */
-	      log_info (_("automatically retrieved '%s' via %s\n"),
-			name, mechanism);
+              if (opt.verbose)
+                log_info (_("automatically retrieved '%s' via %s\n"),
+                          name, mechanism);
 	      break;
 	    }
 	  if (gpg_err_code (rc) != GPG_ERR_NO_PUBKEY

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list