This is an automated email from the ASF dual-hosted git repository. tvb pushed a commit to branch jennis/push_pull_artifacts in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit d3f1a4d82c65a79cc7bd1c97e79034922e3ffc05 Author: James Ennis <[email protected]> AuthorDate: Tue Jan 15 16:42:33 2019 +0000 cli.py: Handle the pulling of an artifact's buildtree --- buildstream/_frontend/cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/buildstream/_frontend/cli.py b/buildstream/_frontend/cli.py index 41dee45..985f5d2 100644 --- a/buildstream/_frontend/cli.py +++ b/buildstream/_frontend/cli.py @@ -1001,13 +1001,16 @@ def artifact_pull(app, artifacts, deps, remote): remotes = usr_remotes + project_remotes + # Pull buildtrees? + excluded_subdirs = ["buildtree"] if app.context.pull_buildtrees else None + # Try to pull the artifact from one of the remotes remotes = [cache.create_remote(spec) for spec in remotes] for ref in artifacts: if cache.contains_ref(ref): continue for remote in remotes: - if cache.pull_ref(ref, remote): + if cache.pull_ref(ref, remote, exclude_subdirs=exclude_subdirs): break
