summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.co.uk>2019-09-09 11:48:17 +0100
committerJames Ennis <james.ennis@codethink.co.uk>2019-09-12 16:29:12 +0100
commiteeb0f3c89a89e76f86523404b4a22fc3ab8020f5 (patch)
tree2f2c05fb882c58baebdc423390227d7992c0502e
parent344c3e4cd4934be12ddb0e44cfbb617114dd14dd (diff)
downloadbuildstream-eeb0f3c89a89e76f86523404b4a22fc3ab8020f5.tar.gz
_stream.py: Add doc comment to _export_artifacts()
_export_artifact() is not a trivial function and thus deserves a doc comment
-rw-r--r--src/buildstream/_stream.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py
index 293ba051d..346d63da3 100644
--- a/src/buildstream/_stream.py
+++ b/src/buildstream/_stream.py
@@ -572,6 +572,18 @@ class Stream():
raise StreamError("Error while staging dependencies into a sandbox"
": '{}'".format(e), detail=e.detail, reason=e.reason) from e
+ # _export_artifact()
+ #
+ # Export the files of the artifact/a tarball to a virtual directory
+ #
+ # Args:
+ # tar (bool): Whether we want to create a tarfile
+ # location (str): The name of the directory/the tarfile we want to export to/create
+ # compression (str): The type of compression for the tarball
+ # target (Element/ArtifactElement): The Element/ArtifactElement we want to checkout
+ # hardlinks (bool): Whether to checkout hardlinks instead of copying
+ # virdir (Directory): The sandbox's root directory as a virtual directory
+ #
def _export_artifact(self, tar, location, compression, target, hardlinks, virdir):
if not tar:
with target.timed_activity("Checking out files in '{}'"