]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
lib/bb/build.py: remove task flag in deltask()
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 15 Jun 2016 02:42:10 +0000 (19:42 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Jun 2016 13:18:53 +0000 (14:18 +0100)
Otherwise the function like d.getVarFlag(e, 'task', True) which is used by
do_listtasks will still get it, and list the deleted tasks.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/build.py

index e016ae3f40cbe855f1f1004247196826efefe8f2..2ebe67306fa11173e578383b9fe717318caf5d53 100644 (file)
@@ -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')