From dbb12cdde5c2eefc234675370140540bdec62143 Mon Sep 17 00:00:00 2001 From: miao_kaibo Date: Thu, 9 Dec 2021 17:40:09 +0800 Subject: [PATCH] bug fix --- script/tools/check_dep.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/tools/check_dep.py b/script/tools/check_dep.py index a035f8d..070d389 100644 --- a/script/tools/check_dep.py +++ b/script/tools/check_dep.py @@ -51,8 +51,8 @@ def set_exclude(f, arch, err, rpm_list_file, delete_rpm_list_file): if "requires" in line: print(line) f.write("%s\n" % line) - if "package" in line: - pkg = line.split("package")[1].split("requires")[0].strip() + if " package " in line: + pkg = line.split(" package ")[1].split("requires")[0].strip() if pkg not in rpm_list: rpm_list.append(pkg) if "needed by" in line: -- Gitee