From a9d02d0ee23dbd212f3d0cb9c7a5624a9c574acc Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 18 May 2017 18:17:01 +0200 Subject: bitbake: BBHandler: Remove old style bb.data.setVar() syntax usage Fixes except bb.parse.SkipRecipe: > bb.data.setVar("__SKIPPED", True, d) if include == 0: AttributeError: module 'bb.data' has no attribute 'setVar' (Bitbake rev: d43e97226dc7f53592c06a528f20390b68dc854f) Signed-off-by: Enrico Scholz Signed-off-by: Richard Purdie --- bitbake/lib/bb/parse/parse_py/BBHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/bb/parse/parse_py/BBHandler.py') diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py index fe918a41f3..f89ad24273 100644 --- a/bitbake/lib/bb/parse/parse_py/BBHandler.py +++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py @@ -144,7 +144,7 @@ def handle(fn, d, include): try: statements.eval(d) except bb.parse.SkipRecipe: - bb.data.setVar("__SKIPPED", True, d) + d.setVar("__SKIPPED", True) if include == 0: return { "" : d } -- cgit v1.2.3-54-g00ecf