diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-01 14:01:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-01 14:01:32 +0100 |
commit | 67434496108efc3aba9cb1e3640bc712658b1408 (patch) | |
tree | c6b406ed820a201c807dd7a3fb4cf2d1b294c23f /lib | |
parent | a8ab0af776ba20c83832215054180fbd15c274c0 (diff) | |
download | bitbake-67434496108efc3aba9cb1e3640bc712658b1408.tar.gz |
data_smart: Adding overrides of zero length is pointless so lets not
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/data_smart.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py index 67866d5bd..64a900c55 100644 --- a/lib/bb/data_smart.py +++ b/lib/bb/data_smart.py @@ -258,9 +258,10 @@ class DataSmart(MutableMapping): # more cookies for the cookie monster if '_' in var: override = var[var.rfind('_')+1:] - if override not in self._seen_overrides: - self._seen_overrides[override] = set() - self._seen_overrides[override].add( var ) + if len(override) > 0: + if override not in self._seen_overrides: + self._seen_overrides[override] = set() + self._seen_overrides[override].add( var ) # setting var self.dict[var]["content"] = value |