aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-01-25 09:20:43 +1300
committerPaul Eggleton <paul.eggleton@linux.intel.com>2017-02-07 09:23:33 +1300
commit8dcf30d04d29fe27743ae28077c054dfc52471f1 (patch)
tree2926f57c84c6863329fd89b723578539a1bb9233
parent9bd014c81cb0abea70e2ca8c19b4938fe6c0f312 (diff)
downloadopenembedded-core-contrib-8dcf30d04d29fe27743ae28077c054dfc52471f1.tar.gz
classes/patch: switch to new bb.build.tasksbetween() function
A generic version of the code to work out the tasks between two tasks (based on the code here) has been added to bb.build, so use that instead. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
-rw-r--r--meta/classes/patch.bbclass20
1 files changed, 1 insertions, 19 deletions
diff --git a/meta/classes/patch.bbclass b/meta/classes/patch.bbclass
index d0806bcda2..8f35cb4f95 100644
--- a/meta/classes/patch.bbclass
+++ b/meta/classes/patch.bbclass
@@ -12,25 +12,7 @@ inherit terminal
python () {
if d.getVar('PATCHTOOL') == 'git' and d.getVar('PATCH_COMMIT_FUNCTIONS') == '1':
- tasks = list(filter(lambda k: d.getVarFlag(k, "task"), d.keys()))
- extratasks = []
- def follow_chain(task, endtask, chain=None):
- if not chain:
- chain = []
- chain.append(task)
- for othertask in tasks:
- if othertask == task:
- continue
- if task == endtask:
- for ctask in chain:
- if ctask not in extratasks:
- extratasks.append(ctask)
- else:
- deps = d.getVarFlag(othertask, 'deps', False)
- if task in deps:
- follow_chain(othertask, endtask, chain)
- chain.pop()
- follow_chain('do_unpack', 'do_patch')
+ extratasks = bb.build.tasksbetween('do_unpack', 'do_patch', d)
try:
extratasks.remove('do_unpack')
except ValueError: