mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-26 17:56:33 -04:00
update tools/syscap_collector.py.
Signed-off-by: flying <pengmengjie1@huawei.com>
This commit is contained in:
@@ -31,12 +31,11 @@ def get_args():
|
||||
args = parser.parse_args()
|
||||
return args
|
||||
|
||||
def adjust_syscaps_list(sys_list: str, product: str):
|
||||
|
||||
def adjust_syscaps_list(sys_list: list, product: str):
|
||||
standard_product = ["default", "ipcamera", "pc", "tablet"]
|
||||
if product in standard_product:
|
||||
for syscap in sys_list:
|
||||
if syscap[-5:] == ".Lite":
|
||||
sys_list.remove(syscap)
|
||||
sys_list = [syscap for syscap in sys_list if not syscap.endswith(".Lite")]
|
||||
return sys_list
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user