gpg: Avoid double fingerprint printing with import-show.
authorWerner Koch <wk@gnupg.org>
Fri, 4 Aug 2017 15:09:17 +0000 (17:09 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 4 Aug 2017 15:09:17 +0000 (17:09 +0200)
* g10/import.c (import_one) <IMPORT_SHOW>: Take care of fingerprint
options.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/import.c

index b1b8e0f..5b55f8f 100644 (file)
@@ -1778,7 +1778,8 @@ import_one (ctrl_t ctrl,
       merge_keys_done = 1;
       /* Note that we do not want to show the validity because the key
        * has not yet imported.  */
-      list_keyblock_direct (ctrl, keyblock, 0, 0, 1, 1);
+      list_keyblock_direct (ctrl, keyblock, 0, 0,
+                            opt.fingerprint || opt.with_fingerprint, 1);
       es_fflush (es_stdout);
     }