提交 2182b244 编写于 作者: S Shinwell Hu

handler some wired tag exceptions

上级 7244ac6c
......@@ -214,6 +214,9 @@ class VersionTypeXYZW(VersionType):
version_list.append(re.split(r'[._-]', version)) # 将 version 拆分为列表,方便后续比较
x = '0'
for version in version_list: # 第一轮比较取出最大的第一位
if int(version[0]) > 1000: # consider it an useless exception
continue
if self._compare(x, version[0]) < 0:
x = version[0]
......@@ -361,6 +364,8 @@ class VersionTypeXYZ(VersionType):
version_list.append(re.split(r'[._-]', version)) # 将 version 拆分为列表,方便后续比较
x = '0'
for version in version_list: # 第一轮比较取出最大的第一位
if int(version[0]) > 1000: # consider it an useless exception
continue
if self._compare(x, version[0]) < 0:
x = version[0]
......@@ -464,6 +469,9 @@ class VersionTypeXY(VersionType):
version_list.append(re.split(r'[._-]', version)) # 将 version 拆分为列表,方便后续比较
x = '0'
for version in version_list: # 第一轮比较取出最大的第一位
if int(version[0]) > 1000: # consider it an useless exception
continue
if self._compare(x, version[0]) < 0:
x = version[0]
......@@ -576,6 +584,9 @@ class VersionTypeX(VersionType):
version_list.append(re.split(r'[._-]', version)) # 将 version 拆分为列表,方便后续比较
x = '0'
for version in version_list: # 第一轮比较取出最大的第一位
if int(version[0]) > 1000: # consider it an useless exception
continue
if self._compare(x, version[0]) < 0:
x = version[0]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册