[gnome-continuous-yocto/gnomeostree-3.28-rocko: 4537/8267] classes/patch: switch to new bb.build.tasksbetween() function
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 4537/8267] classes/patch: switch to new bb.build.tasksbetween() function
- Date: Sun, 17 Dec 2017 02:10:33 +0000 (UTC)
commit 1a9f33ccc77f314ed3cf544044fd0059294be5a0
Author: Paul Eggleton <paul eggleton linux intel com>
Date: Tue Feb 7 09:30:49 2017 +1300
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.
(From OE-Core rev: 1226e2eb2678407c315befd5700e653602e616a0)
Signed-off-by: Paul Eggleton <paul eggleton linux intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
meta/classes/patch.bbclass | 20 +-------------------
1 files changed, 1 insertions(+), 19 deletions(-)
---
diff --git a/meta/classes/patch.bbclass b/meta/classes/patch.bbclass
index d0806bc..8f35cb4 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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]