Remove upstreams from projects.yaml
And update the normalization script to do so. Change-Id: Ia204da5e71e53d8175bc74e957b33db367b58ab4
This commit is contained in:
parent
91bf99ffd3
commit
dfe8b92214
File diff suppressed because it is too large
Load Diff
5
tools/normalize_projects_yaml.py
Normal file → Executable file
5
tools/normalize_projects_yaml.py
Normal file → Executable file
@ -90,6 +90,11 @@ def main():
|
||||
|
||||
data = yaml.load(open('gerrit/projects.yaml'))
|
||||
|
||||
for project in data:
|
||||
if ('upstream' in project and
|
||||
'track-upstream' not in project.get('options', [])):
|
||||
del project['upstream']
|
||||
|
||||
with open('gerrit/projects.yaml', 'w') as out:
|
||||
out.write(yaml.dump(data, default_flow_style=False,
|
||||
Dumper=IndentedDumper, width=80))
|
||||
|
Loading…
x
Reference in New Issue
Block a user