提交 9b8e77f4 编写于 作者: S Shinwell Hu

update changelog format

上级 f1b65e97
...@@ -83,7 +83,7 @@ def create_spec(repo, spec_str, o_ver, n_ver, src_fn=None): ...@@ -83,7 +83,7 @@ def create_spec(repo, spec_str, o_ver, n_ver, src_fn=None):
if nl.startswith("%changelog"): if nl.startswith("%changelog"):
in_changelog = True in_changelog = True
d = datetime.date.today() d = datetime.date.today()
fn.write(d.strftime("* %a %b %d %Y SimpleUpdate Robot <tc@openeuler.org>\n")) fn.write(d.strftime("* %a %b %d %Y SimpleUpdate Robot <tc@openeuler.org> - {ver}-0\n").format(ver=n_ver))
fn.write("- Update to version {ver}\n".format(ver=n_ver)) fn.write("- Update to version {ver}\n".format(ver=n_ver))
fn.write("\n") fn.write("\n")
fn.close() fn.close()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册