bitbake/data.py: Handle exceptions in export_bars in the same way as emit_var()

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie
2010-08-20 09:40:49 +01:00
parent 9b8ae6ba45
commit 604f12722a

View File

@@ -233,9 +233,14 @@ def export_vars(d):
keys = (key for key in d.keys() if d.getVarFlag(key, "export"))
ret = {}
for k in keys:
v = d.getVar(k, True)
if v:
ret[k] = v
try:
v = d.getVar(k, True)
if v:
ret[k] = v
except (KeyboardInterrupt, bb.build.FuncFailed):
raise
except Exception, exc:
pass
return ret
def update_data(d):