diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-23 10:47:45 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-23 10:56:40 +0100 |
commit | acd6d7ffa8813b3b11cad9145e8e614a695ae04a (patch) | |
tree | 1a8d56a47da40716f7f95fd6db3a8e6bfd461e04 /lib/bb/methodpool.py | |
parent | d4968eac539f777367ab1243a1049117cb261176 (diff) | |
download | bitbake-acd6d7ffa8813b3b11cad9145e8e614a695ae04a.tar.gz |
methodpool: Conflicting methodnames should be a fatal error
When this error occurs, the build should stop, not continue uninterrupted.
[YOCTO #4460]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/methodpool.py')
-rw-r--r-- | lib/bb/methodpool.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/methodpool.py b/lib/bb/methodpool.py index 2fb5d96a3..8ad23c650 100644 --- a/lib/bb/methodpool.py +++ b/lib/bb/methodpool.py @@ -50,7 +50,7 @@ def insert_method(modulename, code, fn): if name in ['None', 'False']: continue elif name in _parsed_fns and not _parsed_fns[name] == modulename: - 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])) + bb.fatal("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])) else: _parsed_fns[name] = modulename |