diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-20 09:40:49 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-20 09:42:31 +0100 |
commit | 604f12722a0ab2e3e16e87c785682bd5f744f94f (patch) | |
tree | 7a1af0352e92961b86fd19e832c21125485fbdbc /bitbake/lib/bb | |
parent | 9b8ae6ba4525a63ba18b9e0e85cf0fb9f2a670f1 (diff) | |
download | openembedded-core-604f12722a0ab2e3e16e87c785682bd5f744f94f.tar.gz openembedded-core-604f12722a0ab2e3e16e87c785682bd5f744f94f.tar.bz2 openembedded-core-604f12722a0ab2e3e16e87c785682bd5f744f94f.tar.xz openembedded-core-604f12722a0ab2e3e16e87c785682bd5f744f94f.zip |
bitbake/data.py: Handle exceptions in export_bars in the same way as emit_var()
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/data.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py index 9e37f5e32..223f9c505 100644 --- a/bitbake/lib/bb/data.py +++ b/bitbake/lib/bb/data.py @@ -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): |