summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 946ba9ca06..d7e90f25d2 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1661,7 +1661,10 @@ class CookerExit(bb.event.Event):
1661class CookerCollectFiles(object): 1661class CookerCollectFiles(object):
1662 def __init__(self, priorities): 1662 def __init__(self, priorities):
1663 self.bbappends = [] 1663 self.bbappends = []
1664 self.bbfile_config_priorities = priorities 1664 # Priorities is a list of tupples, with the second element as the pattern.
1665 # We need to sort the list with the longest pattern first, and so on to
1666 # the shortest. This allows nested layers to be properly evaluated.
1667 self.bbfile_config_priorities = sorted(priorities, key=lambda tup: tup[1], reverse=True)
1665 1668
1666 def calc_bbfile_priority( self, filename, matched = None ): 1669 def calc_bbfile_priority( self, filename, matched = None ):
1667 for _, _, regex, pri in self.bbfile_config_priorities: 1670 for _, _, regex, pri in self.bbfile_config_priorities: