projects
/
cdist.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d741e6
)
Back compatibility.
author
Carl Hetherington
<cth@carlh.net>
Fri, 10 Jan 2014 10:46:39 +0000
(10:46 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 10 Jan 2014 10:46:39 +0000
(10:46 +0000)
cdist
patch
|
blob
|
history
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])