Mercurial > treepkg
comparison 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 |
comparison
equal
deleted
inserted
replaced
196:86ea689eda5f | 197:bd887d02068a |
---|---|
26 for line in open(filename): | 26 for line in open(filename): |
27 | 27 |
28 # Matches lines like | 28 # Matches lines like |
29 # m4_define(my_version, [1.1.7]) | 29 # m4_define(my_version, [1.1.7]) |
30 # used by most of the gnupg packages | 30 # used by most of the gnupg packages |
31 match = re.match(r"m4_define\(\[?my_version\]?, \[([0-9.]+)\]\)", | 31 match = re.match(r"m4_define\(\[?my_version\]?, \[([^]]+)\]\)", |
32 line) | 32 line) |
33 if match: | 33 if match: |
34 return match.group(1) | 34 return match.group(1) |
35 | 35 |
36 # Matches lines like. | 36 # Matches lines like. |