summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
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/bb
parentba3aef9b06c5fdb2b9cc5bf43915886f3fa313a7 (diff)
downloadpoky-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/bb')
-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 3959abf14d..40c2694a3e 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1212,7 +1212,8 @@ class BBCooker:
1212 base = os.path.basename(f).replace('.bbappend', '.bb') 1212 base = os.path.basename(f).replace('.bbappend', '.bb')
1213 if not base in self.appendlist: 1213 if not base in self.appendlist:
1214 self.appendlist[base] = [] 1214 self.appendlist[base] = []
1215 self.appendlist[base].append(f) 1215 if f not in self.appendlist[base]:
1216 self.appendlist[base].append(f)
1216 1217
1217 # Find overlayed recipes 1218 # Find overlayed recipes
1218 # bbfiles will be in priority order which makes this easy 1219 # bbfiles will be in priority order which makes this easy