From: Irina Patru Date: Tue, 21 Jan 2014 15:59:38 +0000 (+0200) Subject: hob: don't display interruptions as fails X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea1939f7ec8d8a71ce16a60c251c2413d7d91eb3;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git hob: don't display interruptions as fails When Hob receives a bb.command.CommandFailed event, it should check if it's a log kind of information. "Forced shutdown" and "Stopped build" are messages that show when a build is not complete, but Hob considered them error. [HOB #5609] Signed-off-by: Irina Patru Signed-off-by: Richard Purdie --- diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py index a3bd264fa4b..379232849b9 100644 --- a/lib/bb/ui/crumbs/hobeventhandler.py +++ b/lib/bb/ui/crumbs/hobeventhandler.py @@ -250,7 +250,8 @@ class HobHandler(gobject.GObject): self.current_phase = None self.run_next_command() elif isinstance(event, bb.command.CommandFailed): - self.error_msg += event.error + if event.error not in ("Forced shutdown", "Stopped build"): + self.error_msg += event.error self.commands_async = [] self.display_error() elif isinstance(event, (bb.event.ParseStarted,