diff recipes/gnupg/base.py @ 197:bd887d02068a

Make the version detection for the gnupg recipes more tolerant to deal with version numbers like e.g. 1.4.2rc1.
author Bernhard Herzog <bh@intevation.de>
date Wed, 20 Aug 2008 12:58:20 +0000
parents 81585486281b
children 98ffe5f3863b
line wrap: on
line diff
--- a/recipes/gnupg/base.py	Fri Aug 01 19:54:58 2008 +0000
+++ b/recipes/gnupg/base.py	Wed Aug 20 12:58:20 2008 +0000
@@ -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)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)