diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-25 14:57:53 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-27 10:35:30 +0000 |
commit | 4cd96710785eb05abeff1f281878655118d4a7dd (patch) | |
tree | f2e15210fa7057df398c6e20ecc51f1d747a12ab /bitbake/lib/bb/codeparser.py | |
parent | 0a434ac10158e2011d41a1189e65e9474b1672be (diff) | |
download | poky-4cd96710785eb05abeff1f281878655118d4a7dd.tar.gz |
bitbake: Update users of getVar/setVar to use the data store functions directly
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/codeparser.py')
-rw-r--r-- | bitbake/lib/bb/codeparser.py | 4 |
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 = {} | |||
36 | shellparsecache = {} | 36 | shellparsecache = {} |
37 | 37 | ||
38 | def parser_cachefile(d): | 38 | def 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) |