diff options
author | James Ennis <james.ennis@codethink.co.uk> | 2019-08-21 12:53:08 +0100 |
---|---|---|
committer | James Ennis <james.ennis@codethink.co.uk> | 2019-08-22 16:33:52 +0100 |
commit | d4de253659cfbb94799c7540778943ec1ce62944 (patch) | |
tree | 0dad29edd98853ba5288dd6e893634d3e25d8b4a | |
parent | 6bbcc1355d828dc7f65f50ba80a29f63c1f2a343 (diff) | |
download | buildstream-d4de253659cfbb94799c7540778943ec1ce62944.tar.gz |
element.py: Add _add_build_dependency() method
This method explicitly adds a build dependency to an Element
instance's __build_dependency list. This is required when
determining the build dependencies of an artifact
-rw-r--r-- | src/buildstream/element.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py index 78fee5dff..c44af942b 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -2366,6 +2366,16 @@ class Element(Plugin): assert self.__artifact, "{}: has no Artifact object".format(self.name) return self.__artifact + # _add_build_dependency() + # + # Add a build dependency to the Element + # + # Args: + # (Element): The Element to add as a build dependency + # + def _add_build_dependency(self, dependency): + self.__build_dependencies.append(dependency) + ############################################################# # Private Local Methods # ############################################################# |