[git] GnuPG - branch, master, updated. gnupg-2.2.7-304-ge7252ae

by Werner Koch cvs at cvs.gnupg.org
Tue Dec 11 12:31:24 CET 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  e7252ae57f3c9da557f23295268f74dd25fee3a1 (commit)
      from  2c35e67e3475ec38ff49953d79bd0f734d6db542 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e7252ae57f3c9da557f23295268f74dd25fee3a1
Author: Werner Koch <wk at gnupg.org>
Date:   Tue Dec 11 12:29:58 2018 +0100

    gpg: In search-keys return "Not found" instead of "No Data".
    
    * g10/keyserver.c (keyserver_search): Check for NO_DATA.
    --
    
    GnuPG-bug-id: 3830
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/g10/keyserver.c b/g10/keyserver.c
index 44870a6..1ba94ed 100644
--- a/g10/keyserver.c
+++ b/g10/keyserver.c
@@ -1528,7 +1528,7 @@ keyserver_search (ctrl_t ctrl, strlist_t tokens)
 
   err = gpg_dirmngr_ks_search (ctrl, searchstr, search_line_handler, &parm);
 
-  if (parm.not_found)
+  if (parm.not_found || gpg_err_code (err) == GPG_ERR_NO_DATA)
     {
       if (parm.searchstr_disp)
         log_info (_("key \"%s\" not found on keyserver\n"),
@@ -1539,6 +1539,8 @@ keyserver_search (ctrl_t ctrl, strlist_t tokens)
 
   if (gpg_err_code (err) == GPG_ERR_NO_KEYSERVER)
     log_error (_("no keyserver known (use option --keyserver)\n"));
+  else if (gpg_err_code (err) == GPG_ERR_NO_DATA)
+    err = gpg_error (GPG_ERR_NOT_FOUND);
   else if (err)
     log_error ("error searching keyserver: %s\n", gpg_strerror (err));
 

-----------------------------------------------------------------------

Summary of changes:
 g10/keyserver.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list