commit | 9affd7adc64d16a7dd4733f5b90b2dfda5b1a279 | [log] [tgz] |
---|---|---|
author | Ali Saidi <saidi@eecs.umich.edu> | Wed Oct 08 18:34:19 2008 -0400 |
committer | Ali Saidi <saidi@eecs.umich.edu> | Wed Oct 08 18:34:19 2008 -0400 |
tree | e93e8311cea3e50775d269fcb3c2265a7ee146ec | |
parent | fef5a4f49cdeb568590f96007494962e0dd3ce6b [diff] |
Scons: Update compare_versions() to ignore trailing charecters after an int. This is a fix for a mysql version number that includes a (E.g. 5.0.51a)
diff --git a/SConstruct b/SConstruct index f91cb35..260c025 100644 --- a/SConstruct +++ b/SConstruct
@@ -91,7 +91,7 @@ if isinstance(v, (list,tuple)): return v elif isinstance(v, str): - return map(int, v.split('.')) + return map(lambda x: int(re.match('\d+', x).group()), v.split('.')) else: raise TypeError