diff options
author | Denis Fomin <fominde@gmail.com> | 2012-03-18 23:53:11 +0400 |
---|---|---|
committer | Denis Fomin <fominde@gmail.com> | 2012-03-18 23:53:11 +0400 |
commit | a05046c69bad550edfc993936c2ccc500ef25a65 (patch) | |
tree | f0247f28962dd1ce6998c1cfde8768d5657f5084 | |
parent | d35a62493a7969f2fbf524ee99b0c5c7cee8e3cd (diff) |
fix version string
-rw-r--r-- | src/common/defs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/defs.py b/src/common/defs.py index 30b6dda3c..7172021ca 100644 --- a/src/common/defs.py +++ b/src/common/defs.py @@ -32,7 +32,8 @@ import subprocess try: node = subprocess.Popen('hg tip --template "{node|short}"', shell=True, stdout=subprocess.PIPE).communicate()[0] - version += '-' + node + if node: + version += '-' + node except Exception: pass |