mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 02:11:19 -04:00
update tools/syscap_collector.py.
Signed-off-by: flying <pengmengjie1@huawei.com>
This commit is contained in:
@@ -134,8 +134,8 @@ 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 = [sc for sc in bundle_syscap_list if sc not in false_syscap]
|
||||
bundles_list.extend(bundle_syscap_list)
|
||||
bundle_syscap_l = [sc for sc in bundle_syscap_list if sc not in false_syscap]
|
||||
bundles_list.extend(bundle_syscap_l)
|
||||
errors_list.extend(error_list)
|
||||
syscap_dict.update({product_name: bundles_list})
|
||||
return syscap_dict, errors_list
|
||||
|
||||
Reference in New Issue
Block a user