提交 9ea8b7ba 编写于 作者: M minqiyang

Change the default return value of version from 0 to UNKNOWN

上级 078da5de
...@@ -33,21 +33,21 @@ def get_major(): ...@@ -33,21 +33,21 @@ def get_major():
if major is not None: if major is not None:
return major return major
return 0 return 'UNKNOWN'
def get_minor(): def get_minor():
minor = _get_version_detail(1) minor = _get_version_detail(1)
if minor is not None: if minor is not None:
return minor return minor
return 0 return 'UNKNOWN'
def get_patch(): def get_patch():
patch = _get_version_detail(2) patch = _get_version_detail(2)
if patch is not None: if patch is not None:
return patch return patch
return 0 return 'UNKNOWN'
def is_taged(): def is_taged():
try: try:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册