Back compatibility.
authorCarl Hetherington <cth@carlh.net>
Fri, 10 Jan 2014 10:46:39 +0000 (10:46 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 10 Jan 2014 10:46:39 +0000 (10:46 +0000)
cdist

diff --git a/cdist b/cdist
index 9c8437d09db3eb923bc599edfbecc455f2f09a43..e9bf3e338e93c83b8c7ed816279efd7ecdbc0da0 100755 (executable)
--- 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])