summaryrefslogtreecommitdiff
path: root/bitbake/lib
diff options
context:
space:
mode:
authorChris Larson <clarson@mvista.com>2009-12-06 19:52:52 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-03-25 17:26:02 +0000
commit19d5f2b067bdfdf7caa87b67ffae5d81e4ecdf29 (patch)
tree46a956eb8778a12c86efac84caccbbd0549d344c /bitbake/lib
parentadbfce3958ad954fa70967fe368de87d9f75cd93 (diff)
downloadopenembedded-core-19d5f2b067bdfdf7caa87b67ffae5d81e4ecdf29.tar.gz
openembedded-core-19d5f2b067bdfdf7caa87b67ffae5d81e4ecdf29.tar.bz2
openembedded-core-19d5f2b067bdfdf7caa87b67ffae5d81e4ecdf29.zip
BBFILES: use a set to remove duplicates when collecting.
(Bitbake rev: b1b06133da4ca379a60775552d481f7fbf77e999) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/cooker.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index be73c8a271..5dd8a95759 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -852,23 +852,23 @@ class BBCooker:
bb.msg.error(bb.msg.domain.Collection, "no recipe files to build, check your BBPATH and BBFILES?")
bb.event.fire(CookerExit(), self.configuration.event_data)
- newfiles = []
+ newfiles = set()
for f in files:
if os.path.isdir(f):
dirfiles = self.find_bbfiles(f)
if dirfiles:
- newfiles += dirfiles
+ newfiles.update(dirfiles)
continue
else:
globbed = glob.glob(f)
if not globbed and os.path.exists(f):
globbed = [f]
- newfiles += globbed
+ newfiles.update(globbed)
bbmask = bb.data.getVar('BBMASK', self.configuration.data, 1)
if not bbmask:
- return (newfiles, 0)
+ return (list(newfiles), 0)
try:
bbmask_compiled = re.compile(bbmask)