summaryrefslogtreecommitdiff
path: root/src/buildstream/source.py
diff options
context:
space:
mode:
authorDarius Makovsky <traveltissues@protonmail.com>2019-11-05 09:45:26 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2019-11-05 14:20:33 +0000
commite1abc20299d70a40a58f0df2cda000333cbec56b (patch)
treeb446f5b71d588c4ff780f42ef9183ef856fd9d86 /src/buildstream/source.py
parentc70b64bf33950f5e9b6589c417ecf1fbbb7af5fb (diff)
downloadbuildstream-e1abc20299d70a40a58f0df2cda000333cbec56b.tar.gz
Remove `commit`ting sources inside `Source()._generate_key`
`Stream.shell()` should check that the element's sources are cached before calling the shell. If the sources are not cached raise a StreamError and recommend a fetch. closes #1182
Diffstat (limited to 'src/buildstream/source.py')
-rw-r--r--src/buildstream/source.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/buildstream/source.py b/src/buildstream/source.py
index 0312517c9..5321363a4 100644
--- a/src/buildstream/source.py
+++ b/src/buildstream/source.py
@@ -1118,10 +1118,6 @@ class Source(Plugin):
self.__key = generate_key(keys)
- sourcecache = self._get_context().sourcecache
- if self.BST_KEY_REQUIRES_STAGE and not sourcecache.contains(self):
- sourcecache.commit(self, [])
-
@property
def _key(self):
return self.__key