From 67a3320c4a475c05567223f5f2ed875fcc28cb3f Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sat, 24 Mar 2012 11:37:48 +0100 Subject: [PATCH] accept lists in bld.add_manual_dependency --- waflib/Build.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/waflib/Build.py b/waflib/Build.py index bd3b747b..ea5e8872 100644 --- a/waflib/Build.py +++ b/waflib/Build.py @@ -401,13 +401,20 @@ class BuildContext(Context.Context): :param value: value to depend on :type value: :py:class:`waflib.Node.Node`, string, or function returning a string """ + if path is None: + raise ValueError('Invalid input') + if isinstance(path, waflib.Node.Node): node = path elif os.path.isabs(path): node = self.root.find_resource(path) else: node = self.path.find_resource(path) - self.deps_man[id(node)].append(value) + + if isinstance(value, list): + self.deps_man[id(node)].extend(value) + else: + self.deps_man[id(node)].append(value) def launch_node(self): """Returns the launch directory as a :py:class:`waflib.Node.Node` object"""