summaryrefslogtreecommitdiff
path: root/tools/utils.py
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-12-29 13:38:56 +0800
committerGitHub <[email protected]>2018-12-29 13:38:56 +0800
commitaf33226fab71a6a93e88ce1372509d6667ccd4af (patch)
treea066d99a5dc6c9223d84b30df6a2649d377437d5 /tools/utils.py
parentb7e2cd0eb3afee99601633964bb63f6db3e4cdf9 (diff)
parent77623e8119e9b4634fc26443af4623856b25804c (diff)
Merge pull request #2135 from armink/lts-v3.1.x
Sync the code to v3.1.2
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):