aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/update.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-06-15 10:23:35 +0100
committerPaul Eggleton <paul.eggleton@linux.intel.com>2015-06-15 10:24:18 +0100
commit40f1d51de67645506cbe7becb625cbcaeaa9f716 (patch)
tree4876d3f83294d5f4eb3b7ff14c7c401ee017b128 /layerindex/update.py
parentf4b45258589185fd8bb7f220470a72650dc792f8 (diff)
downloadopenembedded-core-contrib-40f1d51de67645506cbe7becb625cbcaeaa9f716.tar.gz
update.py: minor fixup for last commit
Fix up memory leak fix for bitbake in daisy and earlier which did not have bb.codeparser.codecache. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/update.py')
-rwxr-xr-xlayerindex/update.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/layerindex/update.py b/layerindex/update.py
index 50a7932bf7..22ad6ff399 100755
--- a/layerindex/update.py
+++ b/layerindex/update.py
@@ -587,7 +587,8 @@ def main():
bb.event.ui_queue = []
bb.parse.parse_py.BBHandler.cached_statements = {}
bb.codeparser.codeparsercache = bb.codeparser.CodeParserCache()
- bb.codeparser.codecache = bb.codeparser.SetCache()
+ if hasattr(bb.codeparser, 'codecache'):
+ bb.codeparser.codecache = bb.codeparser.SetCache()
bb.fetch._checksum_cache = bb.checksum.FileChecksumCache()
bb.fetch.urldata_cache = {}
bb.fetch.saved_headrevs = {}