summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/build.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-17 15:52:06 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-17 15:52:06 +0000
commit0388f0758f84c7a8ec975d9be7e384cb65d9af4c (patch)
tree7ad38f8c7a48c7ee634a1d1a7e19c7ec7ec6119c /bitbake/lib/bb/build.py
parenta7fa6dbb91e48158680e5f934289e28119862cdc (diff)
downloadpoky-0388f0758f84c7a8ec975d9be7e384cb65d9af4c.tar.gz
bitbake/build.py: Rename message field to avoid DeprecationWarning: BaseException.message warning
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r--bitbake/lib/bb/build.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index 0376cc93b8..74295dd454 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -51,14 +51,14 @@ class FuncFailed(Exception):
51 def __init__(self, name, logfile = None): 51 def __init__(self, name, logfile = None):
52 self.logfile = logfile 52 self.logfile = logfile
53 self.name = name 53 self.name = name
54 self.message = "Function '%s' failed" % name 54 self.msg = "Function '%s' failed" % name
55 55
56 def __str__(self): 56 def __str__(self):
57 if self.logfile and os.path.exists(self.logfile): 57 if self.logfile and os.path.exists(self.logfile):
58 msg = ("%s (see %s for further information)" % 58 msg = ("%s (see %s for further information)" %
59 (self.message, self.logfile)) 59 (self.msg, self.logfile))
60 else: 60 else:
61 msg = self.message 61 msg = self.msg
62 return msg 62 return msg
63 63
64class TaskBase(event.Event): 64class TaskBase(event.Event):