summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2019-07-05 15:55:26 +0100
committerAngelos Evripiotis <angelos.evripiotis@gmail.com>2019-07-09 20:48:09 +0000
commit9bb1db1b13a85c988537f8b4dd6334a6b3f9a02d (patch)
tree7a386eb8e1e164b0e9817c016f7b30f21152fdba
parentc99f36a8ad4e9b668489c1db82cfb9cbb18d5eda (diff)
downloadbuildstream-9bb1db1b13a85c988537f8b4dd6334a6b3f9a02d.tar.gz
_stream: rm unused _collect_sources()
-rw-r--r--src/buildstream/_stream.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py
index 2ad1a4fee..7e68f1afd 100644
--- a/src/buildstream/_stream.py
+++ b/src/buildstream/_stream.py
@@ -1451,17 +1451,6 @@ class Stream():
os.chmod(script_path, stat.S_IEXEC | stat.S_IREAD)
- # Collect the sources in the given sandbox into a tarfile
- def _collect_sources(self, directory, tar_name, element_name, compression):
- with self._context.messenger.timed_activity("Creating tarball {}".format(tar_name)):
- if compression == "none":
- permissions = "w:"
- else:
- permissions = "w:" + compression
-
- with tarfile.open(tar_name, permissions) as tar:
- tar.add(directory, arcname=element_name)
-
# _get_element_dirname()
#
# Get path to directory for an element based on its normal name.