Skip to content
Snippets Groups Projects

scripts: add script to list duplicate recipes

Closed Davide Gardenal requested to merge tony3oo3/oniro:scripts/duplicate_recipes into kirkstone
2 unresolved threads

Signed-off-by: Davide Gardenal davide.gardenal@huawei.com

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
1 import subprocess
2
3 # This script to generates a list of duplicate recipes in Oniro.
4 # The folder you are running this will determin the scope of the search.
  • Marta Rybczynska
    Marta Rybczynska @mrybczyn started a thread on commit ed61ed01
  • 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
  • Edited by Marta Rybczynska
  • After a discussion with @mrybczyn and @tony3oo3 I reckon we agreed to take this back to the drawing board before moving on this with the implementation. Closing for now but keep me in the loop when we clarify the use case for this support.

  • Please register or sign in to reply
    Loading