summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/recipeutils.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py
index 9de291f5b5..886ad26f17 100644
--- a/meta/lib/oe/recipeutils.py
+++ b/meta/lib/oe/recipeutils.py
@@ -81,11 +81,19 @@ def get_var_files(fn, varlist, d):
81 """ 81 """
82 varfiles = {} 82 varfiles = {}
83 for v in varlist: 83 for v in varlist:
84 history = d.varhistory.variable(v)
85 files = [] 84 files = []
86 for event in history: 85 if '[' in v:
87 if 'file' in event and not 'flag' in event: 86 varsplit = v.split('[')
88 files.append(event['file']) 87 varflag = varsplit[1].split(']')[0]
88 history = d.varhistory.variable(varsplit[0])
89 for event in history:
90 if 'file' in event and event.get('flag', '') == varflag:
91 files.append(event['file'])
92 else:
93 history = d.varhistory.variable(v)
94 for event in history:
95 if 'file' in event and not 'flag' in event:
96 files.append(event['file'])
89 if files: 97 if files:
90 actualfile = files[-1] 98 actualfile = files[-1]
91 else: 99 else: