[gnome-continuous-yocto/gnomeostree-3.28-rocko: 6636/8267] bitbake: BBHandler: Remove old style bb.data.setVar() syntax usage



commit a9d02d0ee23dbd212f3d0cb9c7a5624a9c574acc
Author: Enrico Scholz <enrico scholz sigma-chemnitz de>
Date:   Thu May 18 18:17:01 2017 +0200

    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 <enrico scholz sigma-chemnitz de>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 bitbake/lib/bb/parse/parse_py/BBHandler.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py
index fe918a4..f89ad24 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 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]