aboutsummaryrefslogtreecommitdiffstats
path: root/bin/bbread
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-26 06:01:39 +0000
committerChris Larson <clarson@kergoth.com>2004-12-26 06:01:39 +0000
commit610ad3eaf5eb77e1d1d2d04780817b9936bbad9c (patch)
treed64b86fd092638a8cb4f2240fcd3a986552e88e9 /bin/bbread
parent844f30ade19ab58182e6c673d6247b7a026ecc04 (diff)
downloadbitbake-610ad3eaf5eb77e1d1d2d04780817b9936bbad9c.tar.gz
bbread: wrap the call to bb.data.emit_env() in a try: except block.
Diffstat (limited to 'bin/bbread')
-rwxr-xr-xbin/bbread7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/bbread b/bin/bbread
index 99e5013b7..cafdeab22 100755
--- a/bin/bbread
+++ b/bin/bbread
@@ -37,7 +37,12 @@ if len(sys.argv) == 2:
bb.fatal("%s" % e)
# emit variables and shell functions
-bb.data.emit_env(sys.__stdout__, d, True)
+try:
+ bb.data.emit_env(sys.__stdout__, d, True)
+except bb.build.FuncFailed:
+ pass
+except Exception, e:
+ bb.fatal("%s" % e)
# emit the metadata which isnt valid shell
for e in d.keys():
if bb.data.getVarFlag(e, 'python', d):