summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-22 11:00:22 -0700
committerChris Larson <chris_larson@mentor.com>2010-12-22 12:07:43 -0700
commita4230811ffbfa853a86eb06cba8e16e1cc24bcb2 (patch)
tree43e7670655de8717772abaed4443a8c500e55727 /lib
parent5cde120003af97a5cf5c6eff2a02bb1480f9414b (diff)
downloadbitbake-a4230811ffbfa853a86eb06cba8e16e1cc24bcb2.tar.gz
data_smart: handle None values in expandVarrefs
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/data_smart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index 4a12dd41e..92ef51709 100644
--- a/lib/bb/data_smart.py
+++ b/lib/bb/data_smart.py
@@ -348,7 +348,7 @@ class DataSmart(MutableMapping):
value = self.getVar(variable, False)
for key in keys:
referrervalue = self.getVar(key, False)
- if ref in referrervalue:
+ if referrervalue and ref in referrervalue:
self.setVar(key, referrervalue.replace(ref, value))
def localkeys(self):