From 40f1d51de67645506cbe7becb625cbcaeaa9f716 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 15 Jun 2015 10:23:35 +0100 Subject: [PATCH] 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 --- layerindex/update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layerindex/update.py b/layerindex/update.py index 50a7932..22ad6ff 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 = {}