[Treepkg-commits] r122 - trunk/recipes/gnupg

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Aug 20 14:58:20 CEST 2008


Author: bh
Date: 2008-08-20 14:58:20 +0200 (Wed, 20 Aug 2008)
New Revision: 122

Modified:
   trunk/recipes/gnupg/base.py
Log:
Make the version detection for the gnupg recipes more tolerant to deal
with version numbers like e.g. 1.4.2rc1.


Modified: trunk/recipes/gnupg/base.py
===================================================================
--- trunk/recipes/gnupg/base.py	2008-08-01 19:54:58 UTC (rev 121)
+++ trunk/recipes/gnupg/base.py	2008-08-20 12:58:20 UTC (rev 122)
@@ -28,7 +28,7 @@
             # Matches lines like
             # m4_define(my_version, [1.1.7])
             # used by most of the gnupg packages
-            match = re.match(r"m4_define\(\[?my_version\]?, \[([0-9.]+)\]\)",
+            match = re.match(r"m4_define\(\[?my_version\]?, \[([^]]+)\]\)",
                              line)
             if match:
                 return match.group(1)



More information about the Treepkg-commits mailing list