aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2016-06-14 19:42:10 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-23 14:18:53 +0100
commit779d73619daf59f76f5b0313e7fb5409f6e82553 (patch)
tree176bb954f725e0656cd62b0bc35e0da9d51e85db
parent31977e7bb98f676197c6cee66f6ab4c12d4dcbde (diff)
downloadbitbake-779d73619daf59f76f5b0313e7fb5409f6e82553.tar.gz
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. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/build.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index e016ae3f4..2ebe67306 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -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')