From: Paul Eggleton Date: Tue, 26 Jan 2016 02:53:57 +0000 (+1300) Subject: devtool: properly handle bb.build.FuncFailed when extracting source X-Git-Tag: 2016-4~1272 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=95d8631b3bdf216001e57f48277535c65a4cc49e;p=openembedded-core.git devtool: properly handle bb.build.FuncFailed when extracting source When we run the tasks required to extract the source for a recipe (e.g. within "devtool modify" or "devtool extract") if one of those tasks fails you get a bb.build.FuncFailed exception; handle this properly so you don't see a traceback. Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 187dff201f..18daf8499d 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py @@ -386,7 +386,10 @@ class BbTaskExecutor(object): logger.info('Executing %s...' % func) fn = self.rdata.getVar('FILE', True) localdata = bb.build._task_data(fn, func, self.rdata) - bb.build.exec_func(func, localdata) + try: + bb.build.exec_func(func, localdata) + except bb.build.FuncFailed as e: + raise DevtoolError(str(e)) self.executed.append(func)