From 0ec19090510cfe60d983c15f67c6476e7d49b207 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Thu, 12 Jun 2014 11:15:32 +0100 Subject: 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 --- layerindex/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layerindex/update.py') diff --git a/layerindex/update.py b/layerindex/update.py index b5dcd0aa58..a56507bf3a 100755 --- a/layerindex/update.py +++ b/layerindex/update.py @@ -476,12 +476,12 @@ def main(): else: # Collect recipe data from scratch + layerrecipe_fns = [] if options.fullreload: layerrecipes.delete() else: # First, check which recipes still exist layerrecipe_values = layerrecipes.values('id', 'filepath', 'filename', 'pn') - layerrecipe_fns = [] for v in layerrecipe_values: root = os.path.join(layerdir, v['filepath']) fullpath = os.path.join(root, v['filename']) -- cgit 1.2.3-korg