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:
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…
x
Reference in New Issue
Block a user