update.py: fix not clearing recipe files list on reload

When we did a full reload this list wasn't getting cleared for the next
layer, and we look at the contents of the list unconditionally later to
determine which files need to be added. Given that the list items are
full paths, this is unlikely to have caused any problems; however it
could possibly have been an issue for nested layers with the right
update order, or lead to issues if the usage of the list changes in
future.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2014-06-12 11:15:32 +01:00
parent ab393b18c6
commit 0ec1909051

View File

@ -476,12 +476,12 @@ def main():
else: else:
# Collect recipe data from scratch # Collect recipe data from scratch
layerrecipe_fns = []
if options.fullreload: if options.fullreload:
layerrecipes.delete() layerrecipes.delete()
else: else:
# First, check which recipes still exist # First, check which recipes still exist
layerrecipe_values = layerrecipes.values('id', 'filepath', 'filename', 'pn') layerrecipe_values = layerrecipes.values('id', 'filepath', 'filename', 'pn')
layerrecipe_fns = []
for v in layerrecipe_values: for v in layerrecipe_values:
root = os.path.join(layerdir, v['filepath']) root = os.path.join(layerdir, v['filepath'])
fullpath = os.path.join(root, v['filename']) fullpath = os.path.join(root, v['filename'])