summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py
index 218998a0af..f8dc976a1c 100644
--- a/bitbake/lib/bb/data.py
+++ b/bitbake/lib/bb/data.py
@@ -157,9 +157,9 @@ def expandKeys(alterdata, readdata = None):
157 continue 157 continue
158 todolist[key] = ekey 158 todolist[key] = ekey
159 newval = alterdata.getVar(ekey, 0) 159 newval = alterdata.getVar(ekey, 0)
160 if newval: 160 if newval is not None:
161 val = alterdata.getVar(key, 0) 161 val = alterdata.getVar(key, 0)
162 if val is not None and newval is not None: 162 if val is not None:
163 bb.warn("Variable key %s (%s) replaces original key %s (%s)." % (key, val, ekey, newval)) 163 bb.warn("Variable key %s (%s) replaces original key %s (%s)." % (key, val, ekey, newval))
164 164
165 # These two for loops are split for performance to maximise the 165 # These two for loops are split for performance to maximise the