diff options
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/data_smart.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index 68efc7bb1c..d414bf4614 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py | |||
@@ -231,6 +231,10 @@ class VariableHistory(object): | |||
231 | 231 | ||
232 | if var not in self.variables: | 232 | if var not in self.variables: |
233 | self.variables[var] = [] | 233 | self.variables[var] = [] |
234 | if not isinstance(self.variables[var], list): | ||
235 | return | ||
236 | if 'nodups' in loginfo and loginfo in self.variables[var]: | ||
237 | return | ||
234 | self.variables[var].append(loginfo.copy()) | 238 | self.variables[var].append(loginfo.copy()) |
235 | 239 | ||
236 | def variable(self, var): | 240 | def variable(self, var): |
@@ -460,6 +464,7 @@ class DataSmart(MutableMapping): | |||
460 | loginfo = event.copy() | 464 | loginfo = event.copy() |
461 | loginfo['variable'] = shortvar | 465 | loginfo['variable'] = shortvar |
462 | loginfo['op'] = 'override[%s]:%s' % (override, loginfo['op']) | 466 | loginfo['op'] = 'override[%s]:%s' % (override, loginfo['op']) |
467 | loginfo['nodups'] = True | ||
463 | self.varhistory.record(**loginfo) | 468 | self.varhistory.record(**loginfo) |
464 | 469 | ||
465 | override = None | 470 | override = None |