4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-28 02:47:06 +08:00

[tools] fix bug.

This commit is contained in:
XXXXzzzz000 2018-11-23 09:23:31 +08:00
parent 8206a5ddea
commit 3c9f58a7ab

View File

@ -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):