diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-05-25 02:11:06 -0700 |
---|---|---|
committer | Robert Yang <liezhi.yang@windriver.com> | 2016-05-25 02:21:56 -0700 |
commit | 1357d837c72abd1d9552aa77fd63126f7275aa23 (patch) | |
tree | b5d5afcdcb956324a23fda4c8fb0ebf30d6cd0d7 /meta/classes | |
parent | bb4ead9b7b1400c37a72d148d9775bdf4210ec37 (diff) | |
download | openembedded-core-contrib-1357d837c72abd1d9552aa77fd63126f7275aa23.tar.gz |
utility-tasks.bbclass: fix do_listtasks
It lists deleted tasks which is unexpected, use __BBTASKS to fix the
problem since deltask() which is defined in bitbake/lib/bb/build.py
updates __BBTASKS correctly.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/utility-tasks.bbclass | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/meta/classes/utility-tasks.bbclass b/meta/classes/utility-tasks.bbclass index 7bc584abb9..b06d335f66 100644 --- a/meta/classes/utility-tasks.bbclass +++ b/meta/classes/utility-tasks.bbclass @@ -3,14 +3,14 @@ do_listtasks[nostamp] = "1" python do_listtasks() { taskdescs = {} maxlen = 0 - for e in d.keys(): - if d.getVarFlag(e, 'task', True): - maxlen = max(maxlen, len(e)) - if e.endswith('_setscene'): - desc = "%s (setscene version)" % (d.getVarFlag(e[:-9], 'doc', True) or '') - else: - desc = d.getVarFlag(e, 'doc', True) or '' - taskdescs[e] = desc + bbtasks = d.getVar('__BBTASKS', True) + for task in bbtasks: + maxlen = max(maxlen, len(task)) + if task.endswith('_setscene'): + desc = "%s (setscene version)" % (d.getVarFlag(task[:-9], 'doc', True) or '') + else: + desc = d.getVarFlag(task, 'doc', True) or '' + taskdescs[task] = desc tasks = sorted(taskdescs.keys()) for taskname in tasks: |