From: Chris Larson Date: Thu, 10 Jun 2010 17:44:20 +0000 (-0700) Subject: knotty: stop freaking out and dying when bb.build has removed the empty logfile X-Git-Tag: 2011-1~5475 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=dabe4a39431e46983b72ee0a314c96ccbadfc16c;p=openembedded-core.git knotty: stop freaking out and dying when bb.build has removed the empty logfile (Bitbake rev: 2197182fe5837d74f1499c644e882e87cf035238) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 828e9d235a..1bc9ee67c8 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py @@ -94,7 +94,7 @@ def init(server, eventHandler): if isinstance(event, bb.build.TaskFailed): return_value = 1 logfile = event.logfile - if logfile: + if logfile and os.path.exists(logfile): print("ERROR: Logfile of failure stored in: %s" % logfile) if 1 or includelogs: print("Log data follows:")