From 3c9f58a7abf015260e9aeffc97be2bd172c523e7 Mon Sep 17 00:00:00 2001 From: XXXXzzzz000 <119524428@qq.com> Date: Fri, 23 Nov 2018 09:23:31 +0800 Subject: [PATCH] [tools] fix bug. --- tools/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/utils.py b/tools/utils.py index 692cf36c6..6dc56322a 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): -- GitLab