From ba6db4f82e5994de634919ad6fac61c477513493 Mon Sep 17 00:00:00 2001 From: wangchong1995924 <15229716099@163.com> Date: Wed, 7 Dec 2022 16:30:50 +0800 Subject: [PATCH] delete duplicate information of email --- script/tools/package_install_problem_report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/tools/package_install_problem_report.py b/script/tools/package_install_problem_report.py index 4a70c2f..88c3ad1 100644 --- a/script/tools/package_install_problem_report.py +++ b/script/tools/package_install_problem_report.py @@ -182,7 +182,8 @@ def parse_msg(subjob_url_list, short_list, exclude_rpmlist, file_msg): line_msg['reason'] = tmp_data[0] line_msg['type'] = tmp_data[1] line_msg['rpm_name'] = tmp_data[2] - reason_msg.append(line_msg) + if line_msg not in reason_msg: + reason_msg.append(line_msg) log.info("Final cannot install rpm:%s" % allpkgs) log.info("reason msg:%s" % reason_msg) failed_pkg = [] -- Gitee