mirror of https://github.com/RT-Thread/rt-thread
[tools] fix bug.
This commit is contained in:
parent
8206a5ddea
commit
3c9f58a7ab
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue