summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-07-25 11:48:58 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-26 13:50:07 +0100
commit922eaae5d497ddbe88384020a38bb2b15953725d (patch)
tree53e0774222663ccc0742b9cbb4ca2d151ab05e9d /bitbake/lib
parentba3aef9b06c5fdb2b9cc5bf43915886f3fa313a7 (diff)
downloadast2050-yocto-poky-922eaae5d497ddbe88384020a38bb2b15953725d.zip
ast2050-yocto-poky-922eaae5d497ddbe88384020a38bb2b15953725d.tar.gz
cooker: only append files once
A list can contain the same value twice, therefore only append to the appendlist for a recipe if the append file is not already in the list. (Bitbake rev: d11f9dd33cdcc97a4a937e8bf7e97558d813cadd) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/cooker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 3959abf..40c2694 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1212,7 +1212,8 @@ class BBCooker:
base = os.path.basename(f).replace('.bbappend', '.bb')
if not base in self.appendlist:
self.appendlist[base] = []
- self.appendlist[base].append(f)
+ if f not in self.appendlist[base]:
+ self.appendlist[base].append(f)
# Find overlayed recipes
# bbfiles will be in priority order which makes this easy
OpenPOWER on IntegriCloud