From 9707a401d42f3e4f41e2486391bfc74615d63ed6 Mon Sep 17 00:00:00 2001 From: wangchong1995924 <15229716099@163.com> Date: Thu, 16 Jun 2022 09:44:32 +0800 Subject: [PATCH] remove duplicate package --- script/tools/package_install_problem_report.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/tools/package_install_problem_report.py b/script/tools/package_install_problem_report.py index 430db3e..da5f3e2 100644 --- a/script/tools/package_install_problem_report.py +++ b/script/tools/package_install_problem_report.py @@ -164,9 +164,10 @@ def parse_msg(subjob_url_list, short_list, exclude_rpmlist, file_msg): if flag: if line and line not in exclude_rpmlist: pkglist.append(line) - allpkgs.append(line) + if line not in allpkgs: + allpkgs.append(line) final_result.setdefault(surl, pkglist) - log.info("Final cannot install rpm:%s" % set(allpkgs)) + log.info("Final cannot install rpm:%s" % allpkgs) failed_pkg = [] for bin_rpm in allpkgs: tmp = {} -- Gitee