diff options
| author | XXXXzzzz000 <[email protected]> | 2018-11-23 09:23:31 +0800 |
|---|---|---|
| committer | XXXXzzzz000 <[email protected]> | 2018-11-23 09:23:31 +0800 |
| commit | 3c9f58a7abf015260e9aeffc97be2bd172c523e7 (patch) | |
| tree | fe566bb4c29837e2053eb4a70a484ff66967c0f7 /tools | |
| parent | 8206a5ddea2b6bf74aaff42c4b8178ddf3a25032 (diff) | |
[tools] fix bug.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/utils.py | 4 |
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): |
