diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-10 10:46:39 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-10 10:46:39 +0000 |
| commit | 71054299a0673b1712cbac01346a867e6730cb2a (patch) | |
| tree | b279018b605dfe60abb8b94825da127d3e912435 | |
| parent | 8d741e636ce7ec9667cf31ccffe879b104f52871 (diff) | |
Back compatibility.
| -rwxr-xr-x | cdist | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -144,9 +144,12 @@ class Version: s = s[0:-1] if s.endswith('devel'): - s = s[0:-3] + s = s[0:-5] self.devel = True + if s.endswith('pre'): + s = s[0:-3] + p = s.split('.') self.major = int(p[0]) self.minor = int(p[1]) |
