summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/data.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py
index 3ff1ac8119..2d04b010cd 100644
--- a/bitbake/lib/bb/data.py
+++ b/bitbake/lib/bb/data.py
@@ -194,9 +194,6 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False):
194 if all: 194 if all:
195 o.write('# %s=%s\n' % (var, oval)) 195 o.write('# %s=%s\n' % (var, oval))
196 196
197 if not isinstance(val, basestring):
198 return 0
199
200 if (var.find("-") != -1 or var.find(".") != -1 or var.find('{') != -1 or var.find('}') != -1 or var.find('+') != -1) and not all: 197 if (var.find("-") != -1 or var.find(".") != -1 or var.find('{') != -1 or var.find('}') != -1 or var.find('+') != -1) and not all:
201 return 0 198 return 0
202 199
@@ -206,10 +203,11 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False):
206 o.write('unset %s\n' % varExpanded) 203 o.write('unset %s\n' % varExpanded)
207 return 1 204 return 1
208 205
209 val.rstrip()
210 if not val: 206 if not val:
211 return 0 207 return 0
212 208
209 val = str(val)
210
213 if func: 211 if func:
214 # NOTE: should probably check for unbalanced {} within the var 212 # NOTE: should probably check for unbalanced {} within the var
215 o.write("%s() {\n%s\n}\n" % (varExpanded, val)) 213 o.write("%s() {\n%s\n}\n" % (varExpanded, val))