summaryrefslogtreecommitdiff
path: root/src/buildstream/plugins/sources
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-13 18:54:28 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:02 +0000
commit50335363cd49e7945567609cf8b1273576b27667 (patch)
tree4dbe6507e8c39ce37f228bb1f007f075bca6e6cf /src/buildstream/plugins/sources
parent95a6e2d03157da46f9056956111847989326e3db (diff)
downloadbuildstream-50335363cd49e7945567609cf8b1273576b27667.tar.gz
_yaml: Remove 'node_get' and migrate all remaining calls to new API
Diffstat (limited to 'src/buildstream/plugins/sources')
-rw-r--r--src/buildstream/plugins/sources/pip.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildstream/plugins/sources/pip.py b/src/buildstream/plugins/sources/pip.py
index 816b9e95b..627f26397 100644
--- a/src/buildstream/plugins/sources/pip.py
+++ b/src/buildstream/plugins/sources/pip.py
@@ -114,14 +114,14 @@ class PipSource(Source):
self.ref = node.get_str('ref', None)
self.original_url = node.get_str('url', _PYPI_INDEX_URL)
self.index_url = self.translate_url(self.original_url)
- self.packages = self.node_get_member(node, list, 'packages', [])
- self.requirements_files = self.node_get_member(node, list, 'requirements-files', [])
+ self.packages = node.get_sequence('packages', []).as_str_list()
+ self.requirements_files = node.get_sequence('requirements-files', []).as_str_list()
if not (self.packages or self.requirements_files):
raise SourceError("{}: Either 'packages' or 'requirements-files' must be specified". format(self))
def preflight(self):
- # Try to find a pip version that supports download command
+ # Try to find a pip version that spports download command
self.host_pip = None
for python in reversed(_PYTHON_VERSIONS):
try: