summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-01-10 10:46:39 +0000
committerCarl Hetherington <cth@carlh.net>2014-01-10 10:46:39 +0000
commit71054299a0673b1712cbac01346a867e6730cb2a (patch)
treeb279018b605dfe60abb8b94825da127d3e912435
parent8d741e636ce7ec9667cf31ccffe879b104f52871 (diff)
Back compatibility.
-rwxr-xr-xcdist5
1 files changed, 4 insertions, 1 deletions
diff --git a/cdist b/cdist
index 9c8437d..e9bf3e3 100755
--- a/cdist
+++ b/cdist
@@ -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])