From d2fcbb48bc49a9d8842123de1f0d3577430e43f5 Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Mon, 6 Mar 2017 19:40:54 +0800 Subject: [PATCH] vndk-def: Warn on bad user-specified dependencies. Test: ./tests/run.py Change-Id: I0365be01e92297c198164f62b3bbc2313b2acb89 --- vndk/tools/definition-tool/vndk_definition_tool.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vndk/tools/definition-tool/vndk_definition_tool.py b/vndk/tools/definition-tool/vndk_definition_tool.py index 2e44d5a16..fdf291b14 100755 --- a/vndk/tools/definition-tool/vndk_definition_tool.py +++ b/vndk/tools/definition-tool/vndk_definition_tool.py @@ -634,6 +634,9 @@ class ELFLinker(object): dst = lib_set.get(dst_path) if src and dst: src.add_dep(dst, ty) + return + print('error: cannot add dependency from {} to {}.' + .format(src_path, dst_path), file=sys.stderr) def map_path_to_lib(self, path): for lib_set in (self.lib32, self.lib64):