mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Restore __version_info__
This commit is contained in:
parent
534bbb0488
commit
009930cc66
@ -1,6 +1,7 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
__version__ = '0.10.4'
|
__version_info__ = (0, 10, 4)
|
||||||
|
__version__ = '.'.join(map(str, __version_info__))
|
||||||
|
|
||||||
# If we can get a version from Git use that instead, otherwise carry on
|
# If we can get a version from Git use that instead, otherwise carry on
|
||||||
try:
|
try:
|
||||||
@ -14,6 +15,7 @@ try:
|
|||||||
out, err = p.communicate()
|
out, err = p.communicate()
|
||||||
if out:
|
if out:
|
||||||
__version__ = '{0}'.format(out.strip().lstrip('v'))
|
__version__ = '{0}'.format(out.strip().lstrip('v'))
|
||||||
|
__version_info__ = tuple(__version__.split('-', 1)[0].split('.'))
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user