提交 6593c38b 编写于 作者: S Shinwell Hu

add tag_reorder for acpica. and fix yaml errors

上级 5783fafb
......@@ -41,6 +41,9 @@ def clean_tags(tags, info):
if info.get("tag_pattern", "") != "" and info.get("tag_pattern", "") is not None:
pattern_regex = re.compile(info["tag_pattern"])
result_list = [pattern_regex.sub("\\1", x) for x in tags]
elif info.get("tag_reorder", "") != "" and info.get("tag_reorder", "") is not None:
pattern_regex = re.compile(info["tag_reorder"])
result_list = [pattern_regex.sub(info["tag_neworder"], x) for x in tags]
elif info.get("tag_prefix", "") != "" and info.get("tag_prefix", "") is not None:
prefix_regex = re.compile(info["tag_prefix"])
result_list = [prefix_regex.sub("", x) for x in tags]
......
version_control: github
src_repo: acpica/acpica
tag_prefix: "^R"
tag_reorder: "^R(\\d\\d)_?(\\d\\d)_?(\\d\\d)"
tag_neworder: "20\\3\\1\\2"
separator: "_"
version_control: github
src_repo: gphoto/libgphoto2
tag_pattern: libgphoto2-
tag_prefix: libgphoto2-
separator: _
version_control: github
src_repo: Distrotech/libiec61883
tag_pattern: ^v
tag_prefix: ^v
separator: .
version_control: github
src_repo: twaugh/libieee1284
tag_pattern: ^v
tag_prefix: ^v
separator: _
version_control: git
src_repo: https://dev.lovelyhq.com/libburnia
tag_pattern: release-
src_repo: https://dev.lovelyhq.com/libburnia/libisofs.git
tag_prefix: release-
separator: .
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册