gpg: Make --quiet work on --send-keys.
authorWerner Koch <wk@gnupg.org>
Fri, 6 Sep 2019 14:48:53 +0000 (16:48 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 6 Sep 2019 14:48:53 +0000 (16:48 +0200)
* g10/keyserver.c (keyserver_put): Act upon --quiet.
--

Suggested-by: Robin H. Johnson <robbat2@gentoo.org>
Signed-off-by: Werner Koch <wk@gnupg.org>
g10/keyserver.c

index d7dfcfd..c63f61c 100644 (file)
@@ -1811,9 +1811,10 @@ keyserver_put (ctrl_t ctrl, strlist_t keyspecs)
         log_error (_("skipped \"%s\": %s\n"), kspec->d, gpg_strerror (err));
       else
         {
-          log_info (_("sending key %s to %s\n"),
-                    keystr (keyblock->pkt->pkt.public_key->keyid),
-                    ksurl?ksurl:"[?]");
+          if (!opt.quiet)
+            log_info (_("sending key %s to %s\n"),
+                      keystr (keyblock->pkt->pkt.public_key->keyid),
+                      ksurl?ksurl:"[?]");
 
           err = gpg_dirmngr_ks_put (ctrl, data, datalen, keyblock);
           release_kbnode (keyblock);