[git] GPGME - branch, master, updated. gpgme-1.11.1-58-g92cd060

by Ben McGinnes cvs at cvs.gnupg.org
Sun Jun 10 17:06:17 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 "GnuPG Made Easy".

The branch, master has been updated
       via  92cd060f5e2f4fdbfbe4812ebe8ef57e82e1609f (commit)
      from  8dff414e170e4df8ea661028c4ac1588311ca26e (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 92cd060f5e2f4fdbfbe4812ebe8ef57e82e1609f
Author: Ben McGinnes <ben at adversary.org>
Date:   Mon Jun 11 01:03:58 2018 +1000

    script: groups.py
    
    * Added check for if it is run on a Windows system so that the correct
      binary filename is invoked.

diff --git a/lang/python/examples/howto/groups.py b/lang/python/examples/howto/groups.py
index fe31d7f..b8317b6 100644
--- a/lang/python/examples/howto/groups.py
+++ b/lang/python/examples/howto/groups.py
@@ -24,6 +24,7 @@ from __future__ import absolute_import, division, unicode_literals
 # <http://www.gnu.org/licenses/>.
 
 import subprocess
+import sys
 
 """
 Intended for use with other scripts.
@@ -31,7 +32,12 @@ Intended for use with other scripts.
 Usage: from groups import group_lists
 """
 
-lines = subprocess.getoutput("gpgconf --list-options gpg").splitlines()
+if sys.platform == "win32":
+    gpgconfcmd = "gpgconf.exe --list-options gpg"
+else:
+    gpgconfcmd = "gpgconf --list-options gpg"
+
+lines = subprocess.getoutput(gpgconfcmd).splitlines()
 
 for i in range(len(lines)):
     if lines[i].startswith("group") is True:

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

Summary of changes:
 lang/python/examples/howto/groups.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list