This makes sure there are no typoed or wrong build fields in all metadata
files.
def check_builds(app):
+ supported_flags = set(metadata.build_flags)
+ # needed for YAML and JSON
for build in app.builds:
if build.disable:
if build.disable.startswith('Generated by import.py'):
ref = srclib.split('@')[1].split('/')[0]
if ref.startswith(s):
yield "Branch '%s' used as commit in srclib '%s'" % (s, srclib)
+ for key in build.keys():
+ if key not in supported_flags:
+ yield key + ' is not an accepted build field'
def check_files_dir(app):