fix: gerrit build error

当版本号出现类似5.4.4+r009时,VER_BUI=009被判断成8进制,此处转成10进制去掉0

Log: 修复gerrit构建出错的问题
Change-Id: I3555543bd28e0681a838738aa35df4581a462d28
This commit is contained in:
ck 2021-03-01 18:05:21 +08:00
parent c201deca55
commit 7fc25a8f8f
1 changed files with 5 additions and 3 deletions

View File

@ -33,18 +33,20 @@ message("build dtk with version $$VERSION")
ver_list = $$split(VERSION, .)
isEmpty(VER_MAJ) {
VER_MAJ = $$first(ver_list)
VER_MAJ = $$format_number($$first(ver_list), ibase=10)
}
isEmpty(VER_MIN) {
VER_MIN = $$member(ver_list, 1, 1)
VER_MIN = $$format_number($$member(ver_list, 1, 1), ibase=10)
isEmpty(VER_MIN):VER_MIN = 0
}
isEmpty(VER_PAT) {
VER_PAT = $$member(ver_list, 2, 2)
VER_PAT = $$format_number($$member(ver_list, 2, 2), ibase=10)
isEmpty(VER_PAT):VER_PAT = 0
}
isEmpty(VER_BUI) {
VER_BUI = $$member(ver_list, 3, 3)
# fix VER_BUI=009, invalid digit "9" in octal constant error
VER_BUI = $$format_number($$VER_BUI, ibase=10)
isEmpty(VER_BUI):VER_BUI = 0
}