summaryrefslogtreecommitdiff
path: root/bitbake/lib
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-15 15:35:13 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:50 +0000
commit7bbde5b149751c2b38964b786b76a25f62199397 (patch)
tree4cc2b4a725ec7ae4b91db30db3527bbc0936e4a6 /bitbake/lib
parentddf2c687d8620494f6e994d2d2b1835d605b6258 (diff)
downloadopenembedded-core-7bbde5b149751c2b38964b786b76a25f62199397.tar.gz
openembedded-core-7bbde5b149751c2b38964b786b76a25f62199397.tar.bz2
openembedded-core-7bbde5b149751c2b38964b786b76a25f62199397.tar.xz
openembedded-core-7bbde5b149751c2b38964b786b76a25f62199397.zip
build: fix FuncFailed for the no logfile case
(Bitbake rev: 3a4b5eb20e41bd3cecd9d7e8dff7d076d8a7bb9a) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/build.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index f511caeb9..4f8ac9573 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -51,12 +51,8 @@ __builtins__['os'] = os
class FuncFailed(Exception):
def __init__(self, name, logfile = None):
self.logfile = logfile
- if logfile is None:
- self.name = None
- self.message = name
- else:
- self.name = name
- self.message = "Function '%s' failed" % name
+ self.name = name
+ self.message = "Function '%s' failed" % name
def __str__(self):
if self.logfile and os.path.exists(self.logfile):