Commit 99cafe0f authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

build-rpc: Fail if call is defined more than once

Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent edea391e
......@@ -187,6 +187,12 @@ def main():
assert module.SINGLE == _SINGLE
assert module.MULTI == _MULTI
dups = utils.FindDuplicates(itertools.chain(*map(lambda value: value.keys(),
if dups:
raise Exception("Found duplicate RPC definitions for '%s'" %
for (clsname, calls) in module.CALLS.items():
_WriteBaseClass(sw, clsname, calls.values())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment