gpg: Print AKL info only in verbose mode.
authorWerner Koch <wk@gnupg.org>
Wed, 15 Nov 2017 07:47:32 +0000 (08:47 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 15 Nov 2017 07:47:41 +0000 (08:47 +0100)
* g10/getkey.c (get_pubkey_byname): Print info only in verbose mode.
--

GnuPG-bug-id: 3504
Signed-off-by: Werner Koch <wk@gnupg.org>
g10/getkey.c

index c58e8ff..f73e443 100644 (file)
@@ -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