diff options
author | Chris Larson <clarson@mvista.com> | 2009-12-06 19:52:52 +0000 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-03-24 19:21:59 -0700 |
commit | b1b06133da4ca379a60775552d481f7fbf77e999 (patch) | |
tree | 01ddbaa8a53f983eda2154e665758a35d5dbb38a | |
parent | 4b2a268ce8dad63d21619c1b9acc1de86d222d93 (diff) | |
download | bitbake-b1b06133da4ca379a60775552d481f7fbf77e999.tar.gz |
BBFILES: use a set to remove duplicates when collecting.
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r-- | lib/bb/cooker.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index be73c8a27..5dd8a9575 100644 --- a/lib/bb/cooker.py +++ b/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) |