summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-14 14:19:45 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-14 14:20:51 +0100
commit4ff6160d909e2a39e357c8a51f37d803dab64d5d (patch)
treeb8440f4b9799566f7e707ef7b24e426a9424dfa5 /bitbake/lib
parent1faf02599af12a62bbed0bce5fda6a72df63ec30 (diff)
downloadpoky-4ff6160d909e2a39e357c8a51f37d803dab64d5d.tar.gz
methodpool: Improve method already seen error message
The current error message is confusing, this improves it to explain the problem and the possible ways to resolve it. [YOCTO #2530] (Bitbake rev: d316f28ed725ff40daa8771c1aa224ac46d5b224) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/methodpool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/methodpool.py b/bitbake/lib/bb/methodpool.py
index 1485b1357d..c5aae9bc09 100644
--- a/bitbake/lib/bb/methodpool.py
+++ b/bitbake/lib/bb/methodpool.py
@@ -52,7 +52,7 @@ def insert_method(modulename, code, fn):
52 if name in ['None', 'False']: 52 if name in ['None', 'False']:
53 continue 53 continue
54 elif name in _parsed_fns and not _parsed_fns[name] == modulename: 54 elif name in _parsed_fns and not _parsed_fns[name] == modulename:
55 error( "Error Method already seen: %s in' %s' now in '%s'" % (name, _parsed_fns[name], modulename)) 55 error("The function %s defined in %s was already declared in %s. BitBake has a global python function namespace so shared functions should be declared in a common include file rather than being duplicated, or if the functions are different, please use different function names." % (name, modulename, _parsed_fns[name]))
56 else: 56 else:
57 _parsed_fns[name] = modulename 57 _parsed_fns[name] = modulename
58 58