Removed <image>.bbappend before generating it again as
it may cause tinfoil to fail due to its wrong content.
It's safe to do as <image>.bbappend is regenerated anyway.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
appendfile = os.path.join(config.workspace_path, 'appends',
'%s.bbappend' % image)
+ # remove <image>.bbapend to make sure setup_tinfoil doesn't
+ # breake because of it
+ if os.path.isfile(appendfile):
+ os.unlink(appendfile)
+
recipes = _get_recipes(workspace, config)
if recipes:
with open(appendfile, 'w') as afile: