]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: cooker: Add explict handling of BBHandledException for parsing failures
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 22 Aug 2012 21:40:14 +0000 (22:40 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Aug 2012 08:22:43 +0000 (09:22 +0100)
This removes some unnecessary tracebacks

(Bitbake rev: db0ff7b4d47fce8322dd2350a2b1a6f60ef61d25)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/cooker.py

index cecbed9c211d2a59955d960b81b808b718cb88fb..1b3bb8401889a9a96e11be3cb48d84e77ef39dce 100644 (file)
@@ -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' %