diff options
Diffstat (limited to 'lib/bb/cooker.py')
-rw-r--r-- | lib/bb/cooker.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 9d00c13a0..490fca8cc 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -838,16 +838,21 @@ class BBCooker: collectlog.error("no recipe files to build, check your BBPATH and BBFILES?") bb.event.fire(CookerExit(), self.configuration.event_data) - newfiles = set() + # Can't use set here as order is important + newfiles = [] for f in files: if os.path.isdir(f): dirfiles = self.find_bbfiles(f) - newfiles.update(dirfiles) + for g in dirfiles: + if g not in newfiles: + newfiles.append(g) else: globbed = glob.glob(f) if not globbed and os.path.exists(f): globbed = [f] - newfiles.update(globbed) + for g in globbed: + if g not in newfiles: + newfiles.append(g) bbmask = bb.data.getVar('BBMASK', self.configuration.data, 1) |