update tools/syscap_collector.py.

Signed-off-by: flying <pengmengjie1@huawei.com>
This commit is contained in:
flying
2024-05-28 01:15:39 +00:00
committed by Gitee
parent f15f3bf998
commit f6965cd13e
+1 -1
View File
@@ -134,7 +134,7 @@ def handle_bundle_json_file(component_path_dict: dict, product_define_dict: dict
bundle_syscap_list, error_list = read_json_file(bundle_json_path)
if product_define_dict.get(product_name).get(component):
false_syscap = find_false_syscap(product_define_dict.get(product_name).get(component))
bundle_syscap_list = list(set(bundle_syscap_list) - set(false_syscap))
bundle_syscap_list = [sc for sc in bundle_syscap_list if sc not in false_syscap]
bundles_list.extend(bundle_syscap_list)
errors_list.extend(error_list)
syscap_dict.update({product_name: bundles_list})