From 500f4042acd4ac196c984392f3395789a001523d Mon Sep 17 00:00:00 2001 From: chenmozhijin <110812055+chenmozhijin@users.noreply.github.com> Date: Sat, 28 Sep 2024 22:44:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9B=B4=E6=96=B0=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build_helper/releases.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_helper/releases.py b/build_helper/releases.py index 5e4e646b..d8a96420 100644 --- a/build_helper/releases.py +++ b/build_helper/releases.py @@ -72,7 +72,7 @@ def releases(cfg: dict) -> None: for pkg, version in current_packages.items(): if pkg in old_packages: - if old_packages[pkg] != version: + if old_packages[pkg] != version and not pkg.startswith("luci-i18n-"): changelog += f"更新: {pkg} {old_packages[pkg]} -> {version}\n" else: changelog += f"新增: {pkg} {version}\n" @@ -80,7 +80,7 @@ def releases(cfg: dict) -> None: if pkg not in current_packages: changelog += f"移除: {pkg} {version}\n" - changelog = "更新日志:\n" + changelog if changelog else "无任何软件包更新" + changelog = "更新日志:\n" + changelog if changelog else "无任何软件包更新" body = f"编译完成于: {datetime.now(timezone(timedelta(hours=8))).strftime('%Y-%m-%d %H:%M:%S')}\n" body += f"使用的配置: {cfg['name']}\n"