device-deps-regenerator: blacklist -> ignorelist

Change-Id: I5644c9fd450012d7de1ead4411b43494dc666f83
This commit is contained in:
Michael Bestas
2023-01-13 23:09:49 +02:00
parent 212e53c9c7
commit 3508ae059c

View File

@@ -5,7 +5,7 @@ with open('out.json') as f:
devices = {}
suffixes = {}
blacklist = ['sepolicy', 'devicesettings', 'common', 'atv', 'redbull', 'raviole', 'gs101', 'pantah', 'gs201']
ignorelist = ['sepolicy', 'devicesettings', 'common', 'atv', 'redbull', 'raviole', 'gs101', 'pantah', 'gs201']
def simplify_reverse_deps(repo, device):
# repo['branch'] = cm-14.1 or cm-14.1-caf or cm-14.1-sony
@@ -23,7 +23,7 @@ def simplify_reverse_deps(repo, device):
return res
for repo in mapping:
if 'device' not in repo or any(x in repo for x in blacklist):
if 'device' not in repo or any(x in repo for x in ignorelist):
continue
codename = repo.split('_', maxsplit=3)[-1]
if codename in devices: