1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 05:09:24 +00:00

cooker: don't swallow recipe parse errors

(Bitbake rev: 1f5d49ce64e5e1c7705edbfa3c8e19649c21edd2)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Chris Larson
2010-12-15 22:07:38 -07:00
committed by Richard Purdie
parent 2f0c23d28d
commit 2984877989
+6 -2
View File
@@ -965,7 +965,11 @@ class CookerExit(bb.event.Event):
def parse_file(task):
filename, appends = task
return True, bb.cache.Cache.parse(filename, appends, parse_file.cfg)
try:
return True, bb.cache.Cache.parse(filename, appends, parse_file.cfg)
except Exception, exc:
exc.recipe = filename
raise exc
class CookerParser(object):
def __init__(self, cooker, filelist, masked):
@@ -1049,7 +1053,7 @@ class CookerParser(object):
raise
except Exception as exc:
self.shutdown(clean=False)
sys.exit(1)
bb.fatal('Error parsing %s: %s' % (exc.recipe, exc))
self.current += 1
self.virtuals += len(result)