diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-06-12 11:15:32 +0100 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-06-12 11:21:09 +0100 |
commit | 0ec19090510cfe60d983c15f67c6476e7d49b207 (patch) | |
tree | 37bc6fe15b5ab46c7bdbe19ffcd1bb6ce58b9926 /layerindex | |
parent | ab393b18c675c99d0ce9863a9da0ad272a74b7e8 (diff) | |
download | openembedded-core-contrib-0ec19090510cfe60d983c15f67c6476e7d49b207.tar.gz |
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>
Diffstat (limited to 'layerindex')
-rwxr-xr-x | layerindex/update.py | 2 |
1 files changed, 1 insertions, 1 deletions
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']) |