summaryrefslogtreecommitdiff
path: root/tools/utils.py
diff options
context:
space:
mode:
authorarmink <[email protected]>2018-12-28 18:41:48 +0800
committerarmink <[email protected]>2018-12-28 18:41:48 +0800
commit62a7c59c7af239f8e3453d91058bf69719fa11ec (patch)
tree9341e4a6a8e63ab81437e1275b017d110cdb1078 /tools/utils.py
parent7a6a1e11073617befcb542c62d6782ff03986fcc (diff)
[Tools] Sync to latest version.
Diffstat (limited to 'tools/utils.py')
-rw-r--r--tools/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/utils.py b/tools/utils.py
index 692cf36c69..6dc56322a5 100644
--- a/tools/utils.py
+++ b/tools/utils.py
@@ -245,7 +245,9 @@ def ProjectInfo(env):
return proj
def VersionCmp(ver1, ver2):
- la = ver1.split('.')
+ la=[];
+ if ver1:
+ la = ver1.split('.')
lb = ver2.split('.')
f = 0
if len(la) > len(lb):