"""Find the file in which each of a list of variables is set.
Note: requires variable history to be enabled when parsing.
"""
- envdata = parse_recipe(fn, [], d)
varfiles = {}
for v in varlist:
- history = envdata.varhistory.variable(v)
+ history = d.varhistory.variable(v)
files = []
for event in history:
if 'file' in event and not 'flag' in event:
rd, args.append, None, wildcardver=args.wildcard_version,
extralines=patchfields)
else:
- oe.recipeutils.patch_recipe(config_data, recipefile, patchfields)
+ oe.recipeutils.patch_recipe(rd, recipefile, patchfields)
if not 'git://' in orig_src_uri:
logger.info('You will need to update SRC_URI within the recipe to '
updaterecipe = True
if updaterecipe:
logger.info('Updating recipe %s' % os.path.basename(recipefile))
- oe.recipeutils.patch_recipe(config_data, recipefile,
+ oe.recipeutils.patch_recipe(rd, recipefile,
{'SRC_URI': ' '.join(srcuri)})
elif not updatepatches:
# Neither patches nor recipe were updated