* [PATCH] methodpool: Conflicting methodnames should be a fatal error
@ 2013-05-23 9:47 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2013-05-23 9:47 UTC (permalink / raw)
To: bitbake-devel
When this error occurs, the build should stop, not continue uninterrupted.
[YOCTO #4460]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/bitbake/lib/bb/methodpool.py b/bitbake/lib/bb/methodpool.py
index 2fb5d96..8ad23c6 100644
--- a/bitbake/lib/bb/methodpool.py
+++ b/bitbake/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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-05-23 9:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-23 9:47 [PATCH] methodpool: Conflicting methodnames should be a fatal error Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.