[tools] Fixed precedence issue in cumulative attribute set-arithmetic

Basically this:
a | b - c  !=  (a | b) - c
pull/2281/head
Christopher Haster 2016-07-27 16:47:23 -05:00
parent b171a9c4b8
commit f3c0ea3664
1 changed files with 2 additions and 1 deletions

View File

@ -169,7 +169,8 @@ class ConfigCumulativeOverride:
def update_target(self, target):
setattr(target, self.name, list(
set(getattr(target, self.name, [])) | self.additions - self.removals))
(set(getattr(target, self.name, [])) | self.additions) - self.removals))
# 'Config' implements the mbed configuration mechanism