From 7bbde5b149751c2b38964b786b76a25f62199397 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Wed, 15 Dec 2010 15:35:13 -0700 Subject: build: fix FuncFailed for the no logfile case (Bitbake rev: 3a4b5eb20e41bd3cecd9d7e8dff7d076d8a7bb9a) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/build.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'bitbake/lib') 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): -- cgit v1.2.3