]> code.ossystems Code Review - openembedded-core.git/commitdiff
knotty: stop freaking out and dying when bb.build has removed the empty logfile
authorChris Larson <chris_larson@mentor.com>
Thu, 10 Jun 2010 17:44:20 +0000 (10:44 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 2 Jul 2010 14:41:36 +0000 (15:41 +0100)
(Bitbake rev: 2197182fe5837d74f1499c644e882e87cf035238)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/ui/knotty.py

index 828e9d235a0d3578dcf5df5267accddd72563bc1..1bc9ee67c83dcf4c331df5a028669553198d7f09 100644 (file)
@@ -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:")