From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 93-97-173-237.zone5.bethere.co.uk ([93.97.173.237] helo=tim.rpsys.net) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1T4Iqh-0005e7-7Z for bitbake-devel@lists.openembedded.org; Wed, 22 Aug 2012 23:52:27 +0200 Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id q7MLeMBC007134 for ; Wed, 22 Aug 2012 22:40:22 +0100 Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06433-08 for ; Wed, 22 Aug 2012 22:40:18 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id q7MLeD1J007128 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 22 Aug 2012 22:40:14 +0100 Message-ID: <1345671614.3907.151.camel@ted> From: Richard Purdie To: bitbake-devel Date: Wed, 22 Aug 2012 22:40:14 +0100 X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 X-Virus-Scanned: amavisd-new at rpsys.net Subject: [PATCH] cooker: Add explict handling of BBHandledException for parsing failures X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2012 21:52:27 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit This removes some unnecessary tracebacks Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index c0870b7..b2c9e0b 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' %