summaryrefslogtreecommitdiff
path: root/buildstream/_scheduler/queues/fetchqueue.py
diff options
context:
space:
mode:
authorChandan Singh <chandan.devel@gmail.com>2018-08-15 20:21:01 +0000
committerChandan Singh <chandan.devel@gmail.com>2018-08-15 20:21:01 +0000
commitd4706096abffe54855269f16261aba06b5fa09b6 (patch)
tree88e1200a462a66e5893b69ce29a30acb7ff1f30f /buildstream/_scheduler/queues/fetchqueue.py
parent1292004636c659769ffa76009539957783aebbc3 (diff)
parent4a2dd6afe5e04c8f12a2680a09a1225831565731 (diff)
downloadbuildstream-d4706096abffe54855269f16261aba06b5fa09b6.tar.gz
Merge branch 'chandan/sourcetransform' into 'master'
Allow source plugins to access previous sources Closes #381 See merge request BuildStream/buildstream!568
Diffstat (limited to 'buildstream/_scheduler/queues/fetchqueue.py')
-rw-r--r--buildstream/_scheduler/queues/fetchqueue.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/buildstream/_scheduler/queues/fetchqueue.py b/buildstream/_scheduler/queues/fetchqueue.py
index 265890b7a..bd90a13b6 100644
--- a/buildstream/_scheduler/queues/fetchqueue.py
+++ b/buildstream/_scheduler/queues/fetchqueue.py
@@ -40,8 +40,10 @@ class FetchQueue(Queue):
self._skip_cached = skip_cached
def process(self, element):
+ previous_sources = []
for source in element.sources():
- source._fetch()
+ source._fetch(previous_sources)
+ previous_sources.append(source)
def status(self, element):
# state of dependencies may have changed, recalculate element state