Fix for release builds.
authorCarl Hetherington <cth@carlh.net>
Thu, 29 Nov 2018 02:21:45 +0000 (02:21 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 29 Nov 2018 02:21:45 +0000 (02:21 +0000)
cdist

diff --git a/cdist b/cdist
index 1e71b46ab2fa59070a275498bd0ff9496806d1ae..9d8e146d0610d7b3020def0e1c2676467a516bbe 100755 (executable)
--- a/cdist
+++ b/cdist
@@ -352,7 +352,7 @@ class Version:
     def from_git_tag(cls, tag):
         bits = tag.split('-')
         c = cls(bits[0])
-        if int(bits[1]) > 0:
+        if len(bits) > 1 and int(bits[1]) > 0:
             c.devel = True
         return c