From: Richard Purdie Date: Wed, 22 Aug 2012 21:40:14 +0000 (+0100) Subject: bitbake: cooker: Add explict handling of BBHandledException for parsing failures X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae71aa0fbb4a1a05013983cb1f1d0d79f9f5fd2c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: cooker: Add explict handling of BBHandledException for parsing failures This removes some unnecessary tracebacks (Bitbake rev: db0ff7b4d47fce8322dd2350a2b1a6f60ef61d25) Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index cecbed9c211..1b3bb840188 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -1661,6 +1661,11 @@ class CookerParser(object): except StopIteration: self.shutdown() return False + except bb.BBHandledException as exc: + self.error += 1 + logger.error('Failed to parse recipe: %s' % exc.recipe) + self.shutdown(clean=False) + return False except ParsingFailure as exc: self.error += 1 logger.error('Unable to parse %s: %s' %