[git] GnuPG - branch, STABLE-BRANCH-2-2, updated. gnupg-2.2.8-3-gcbb84b3

by Werner Koch cvs at cvs.gnupg.org
Mon Jun 11 08:58:31 CEST 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, STABLE-BRANCH-2-2 has been updated
       via  cbb84b3361263504dcb958208bc20177cb97cebd (commit)
      from  18274db32b5dea7fe8db67043a787578c975de4d (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 cbb84b3361263504dcb958208bc20177cb97cebd
Author: Werner Koch <wk at gnupg.org>
Date:   Mon Jun 11 08:46:37 2018 +0200

    gpg: Set some list options with --show-keys
    
    * g10/gpg.c (main): Set some list options.
    --
    
    The new command --show-keys is commonly used to check the content of a
    file with keys.  In this case it can be expected that all included
    subkeys and uids are of interested, even when they are already expired
    or have been revoked.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>
    (cherry picked from commit d2bc66f241a66cc95140cbb3a07555f6301290ed)

diff --git a/doc/gpg.texi b/doc/gpg.texi
index ca13047..2915d25 100644
--- a/doc/gpg.texi
+++ b/doc/gpg.texi
@@ -356,9 +356,11 @@ be used to locate a key.  Only public keys are listed.
 @item --show-keys
 @opindex show-keys
 This commands takes OpenPGP keys as input and prints information about
-them in the same way the command @option{--list-keys} does for
-imported key.  No internal state is changed.  For automated processing
-this command should be combined with the option
+them in the same way the command @option{--list-keys} does for locally
+stored key.  In addition the list options @code{show-unusable-uids},
+ at code{show-unusable-subkeys}, @code{show-notations} and
+ at code{show-policy-urls} are also enabled.  As usual for automated
+processing, this command should be combined with the option
 @option{--with-colons}.
 
 @item --fingerprint
diff --git a/g10/gpg.c b/g10/gpg.c
index b76a039..c117de3 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -2610,6 +2610,10 @@ main (int argc, char **argv)
             opt.import_options |= IMPORT_SHOW;
             opt.import_options |= IMPORT_DRY_RUN;
             opt.import_options &= ~IMPORT_REPAIR_KEYS;
+            opt.list_options |= LIST_SHOW_UNUSABLE_UIDS;
+            opt.list_options |= LIST_SHOW_UNUSABLE_SUBKEYS;
+            opt.list_options |= LIST_SHOW_NOTATIONS;
+            opt.list_options |= LIST_SHOW_POLICY_URLS;
             break;
 
 	  case aDetachedSign: detached_sig = 1; set_cmd( &cmd, aSign ); break;

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

Summary of changes:
 doc/gpg.texi | 8 +++++---
 g10/gpg.c    | 4 ++++
 2 files changed, 9 insertions(+), 3 deletions(-)


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




More information about the Gnupg-commits mailing list