summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/codeparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/codeparser.py')
-rw-r--r--bitbake/lib/bb/codeparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/codeparser.py b/bitbake/lib/bb/codeparser.py
index d425514481..2590e5cae7 100644
--- a/bitbake/lib/bb/codeparser.py
+++ b/bitbake/lib/bb/codeparser.py
@@ -36,8 +36,8 @@ pythonparsecache = {}
36shellparsecache = {} 36shellparsecache = {}
37 37
38def parser_cachefile(d): 38def parser_cachefile(d):
39 cachedir = (bb.data.getVar("PERSISTENT_DIR", d, True) or 39 cachedir = (d.getVar("PERSISTENT_DIR", True) or
40 bb.data.getVar("CACHE", d, True)) 40 d.getVar("CACHE", True))
41 if cachedir in [None, '']: 41 if cachedir in [None, '']:
42 return None 42 return None
43 bb.utils.mkdirhier(cachedir) 43 bb.utils.mkdirhier(cachedir)