diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-15 15:35:13 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:50 +0000 |
commit | 7bbde5b149751c2b38964b786b76a25f62199397 (patch) | |
tree | 4cc2b4a725ec7ae4b91db30db3527bbc0936e4a6 | |
parent | ddf2c687d8620494f6e994d2d2b1835d605b6258 (diff) | |
download | poky-7bbde5b149751c2b38964b786b76a25f62199397.tar.gz |
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>
-rw-r--r-- | bitbake/lib/bb/build.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index f511caeb95..4f8ac9573b 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -51,12 +51,8 @@ __builtins__['os'] = os | |||
51 | class FuncFailed(Exception): | 51 | class FuncFailed(Exception): |
52 | def __init__(self, name, logfile = None): | 52 | def __init__(self, name, logfile = None): |
53 | self.logfile = logfile | 53 | self.logfile = logfile |
54 | if logfile is None: | 54 | self.name = name |
55 | self.name = None | 55 | self.message = "Function '%s' failed" % name |
56 | self.message = name | ||
57 | else: | ||
58 | self.name = name | ||
59 | self.message = "Function '%s' failed" % name | ||
60 | 56 | ||
61 | def __str__(self): | 57 | def __str__(self): |
62 | if self.logfile and os.path.exists(self.logfile): | 58 | if self.logfile and os.path.exists(self.logfile): |