[git] GPGME - branch, master, updated. gpgme-1.12.0-79-gde6bb23

by Ben McGinnes cvs at cvs.gnupg.org
Thu Nov 22 08:03:55 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 "GnuPG Made Easy".

The branch, master has been updated
       via  de6bb23279796b9ae4dc369d58591cb75f818684 (commit)
      from  b182838f71d8349d6cd7be9ecfb859b893d09127 (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 de6bb23279796b9ae4dc369d58591cb75f818684
Author: Ben McGinnes <ben at adversary.org>
Date:   Thu Nov 22 18:00:22 2018 +1100

    python: version as integers
    
    * lang/python/version.py.in: added gpg.version.versionintlist
    * If gpg.version.versionintlist[2] ever returns -1 then there's a
      serious problem with the build and it should be lodged as a bug if
      it's repeatable.  Seeing this should never happen, but checking for
      it is better than not doing so.

diff --git a/lang/python/version.py.in b/lang/python/version.py.in
index ad76eda..0388cda 100644
--- a/lang/python/version.py.in
+++ b/lang/python/version.py.in
@@ -28,12 +28,32 @@ productname = 'gpg'
 versionstr = "@VERSION@"
 gpgme_versionstr = gpgme.GPGME_VERSION
 in_tree_build = bool(gpgme.cvar.gpg_in_tree_build)
+is_beta = False
 
 versionlist = versionstr.split(".")
 major = versionlist[0]
 minor = versionlist[1]
 patch = versionlist[2]
 
+versionintlist = []
+versionintlist.append(int(major))
+versionintlist.append(int(minor))
+
+try:
+    int(patch)
+except ValueError as e:
+    is_beta = True
+
+if is_beta is False:
+    versionintlist.append(int(patch))
+else:
+    try:
+        beta_patch = patch.split("-")
+        versionintlist.append(int(beta_patch[0]))
+    except Exception as e:
+        # This should never happen, if it does then lodge a bug report.
+        versionintlist.append(-1)
+
 copyright = """\
 Copyright (C) 2016-2018 g10 Code GmbH
 Copyright (C) 2015 Benjamin D. McGinnes

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

Summary of changes:
 lang/python/version.py.in | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)


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




More information about the Gnupg-commits mailing list