summaryrefslogtreecommitdiff
path: root/src/buildstream/_stream.py
diff options
context:
space:
mode:
authorbst-marge-bot <marge-bot@buildstream.build>2019-07-09 21:16:05 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-09 21:16:05 +0000
commitd1a9a920812ee832d4e4c34a24e8d84c3c9665ca (patch)
treef0e605167c3b99ce6e60da6498ded10b2623d637 /src/buildstream/_stream.py
parente274b648ccbf0149b46ffdee51316bdd4fac7a2e (diff)
parent5781dd9ebcb924ba64f73d746a78402f7e44c7e5 (diff)
downloadbuildstream-d1a9a920812ee832d4e4c34a24e8d84c3c9665ca.tar.gz
Merge branch 'aevri/vulture' into 'master'
Remove some unused code See merge request BuildStream/buildstream!1455
Diffstat (limited to 'src/buildstream/_stream.py')
-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.