summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'BuildTools/SCons/Version.py')
-rw-r--r--BuildTools/SCons/Version.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/BuildTools/SCons/Version.py b/BuildTools/SCons/Version.py
index f98a8b9..2f3b5a5 100644
--- a/BuildTools/SCons/Version.py
+++ b/BuildTools/SCons/Version.py
@@ -12,3 +12,3 @@ def getGitBuildVersion(root, project) :
return None
-
+
def git(cmd, root) :
@@ -21,3 +21,5 @@ def git(cmd, root) :
p.stdin.close()
- return gitVersion if p.wait() == 0 else None
+ if p.wait() == 0 :
+ return gitVersion
+ return None
@@ -31,3 +33,3 @@ def getBuildVersion(root, project) :
- gitVersion = getGitBuildVersion(root, project)
+ gitVersion = getGitBuildVersion(root, project)
if gitVersion :
@@ -61,3 +63,3 @@ def convertToWindowsVersion(version) :
if len(build_string) > 0 :
- build_match = re.match("^-dev(\d+)", build_string)
+ build_match = re.match("^-dev(\d+)", build_string)
if build_match :
@@ -66,2 +68 @@ def convertToWindowsVersion(version) :
return (major, minor, patch)
-