summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data_smart.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-01 14:01:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-01 14:08:40 +0100
commitfdead2bfc05340ac3134ca5de0ad33812d40c7b8 (patch)
treedd5597c79d82f9d6137585521043dda746d2ad13 /bitbake/lib/bb/data_smart.py
parent58bdecbc43390796e7050ad9e0033176716ec423 (diff)
downloadpoky-fdead2bfc05340ac3134ca5de0ad33812d40c7b8.tar.gz
data_smart: Adding overrides of zero length is pointless so lets not
(Bitbake rev: 67434496108efc3aba9cb1e3640bc712658b1408) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/data_smart.py')
-rw-r--r--bitbake/lib/bb/data_smart.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index 67866d5bd8..64a900c556 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -258,9 +258,10 @@ class DataSmart(MutableMapping):
258 # more cookies for the cookie monster 258 # more cookies for the cookie monster
259 if '_' in var: 259 if '_' in var:
260 override = var[var.rfind('_')+1:] 260 override = var[var.rfind('_')+1:]
261 if override not in self._seen_overrides: 261 if len(override) > 0:
262 self._seen_overrides[override] = set() 262 if override not in self._seen_overrides:
263 self._seen_overrides[override].add( var ) 263 self._seen_overrides[override] = set()
264 self._seen_overrides[override].add( var )
264 265
265 # setting var 266 # setting var
266 self.dict[var]["content"] = value 267 self.dict[var]["content"] = value