[bitbake-devel] [PATCH 4/4] cooker: only append files once
Joshua Lock
josh at linux.intel.com
Mon Jul 25 18:56:12 UTC 2011
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.
Signed-off-by: Joshua Lock <josh at linux.intel.com>
---
lib/bb/cooker.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 94e8d09..1f305d9 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1205,7 +1205,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
--
1.7.6
More information about the bitbake-devel
mailing list