scripts: add script to list duplicate recipes
2 unresolved threads
2 unresolved threads
Signed-off-by: Davide Gardenal davide.gardenal@huawei.com
Merge request reports
Activity
Filter activity
added 22 commits
-
a51b89b5...3c54c283 - 21 commits from branch
eclipse/oniro-core:kirkstone
- ed61ed01 - scripts: add script to list duplicate recipes
-
a51b89b5...3c54c283 - 21 commits from branch
- scripts/list_duplicate_recipes.py 0 → 100644
- scripts/list_duplicate_recipes.py 0 → 100644
75 # Check if the layers are different, True if so, False otherwise 76 def are_layers_different(infos): 77 first_layer, _ = infos[0] 78 for current_layer, _ in infos: 79 if first_layer != current_layer: 80 return True 81 return False 82 83 # This doesn't check if the version is duplicate but only checks if in the version is 84 # present "imx" or "arc" or nothing more then once 85 # For example if version_layer_1 is "1.0.0imx" and version_layer_2 is "2.4.3" this does 86 # not count as a duplicate, "1.0.0imx" and "2.4.3imx" does. Same for "arc" 87 def is_version_type_duplicate(infos): 88 found = {"imx": 0, "arc": 0, "none": 0} 89 for _, version in infos: 90 if "imx" in version: found["imx"] += 1 Related to #100 (closed) and #172 (closed)
Edited by Marta Rybczynska
Please register or sign in to reply