Skip to contentSkip to conversation

lib/bb/build.py: remove task flag in deltask()

PATCH New Robert Yang 1 participant 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

cover lib/bb/build.py: remove task flag in deltask()

The following changes since commit 71765a90d1ff455608a006ed32cf42110e779217:

bitbake: cooker.py: fix warn() -> warning() (2016-06-13 12:16:10 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib rbt/deltask
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=rbt/deltask

Robert Yang (1):
lib/bb/build.py: remove task flag in deltask()

 bitbake/lib/bb/build.py | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
2.8.0
#1 lore raw

PATCH 1/1 lib/bb/build.py: remove task flag in deltask()

Otherwise the function like d.getVarFlag(e, 'task', True) which is used by do_listtasks will still get it, and list the deleted tasks.

---
 bitbake/lib/bb/build.py | 1 +
 1 file changed, 1 insertion(+)
bitbake/lib/bb/build.py +1 -0
index e016ae3..2ebe673 100644
@@ -778,6 +778,7 @@ def deltask(task, d):
     bbtasks = d.getVar('__BBTASKS', False) or []
     if task in bbtasks:
         bbtasks.remove(task)
+        d.delVarFlag(task, 'task')
         d.setVar('__BBTASKS', bbtasks)
 
     d.delVarFlag(task, 'deps')
Signature · 1 line
2.8.0