summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-12-05 20:01:35 +0100
committerJürg Billeter <j@bitron.ch>2018-12-05 20:01:35 +0100
commit6e24040b4c65228b5a758e638132eaab1369c83f (patch)
treed864e43d5e0fc68626941d6bf4cdb4b0036c4b7c
parentff1df3ca136ed7bd25fd14a86702a2dce51a0859 (diff)
downloadbuildstream-juerg/fetch.tar.gz
element.py: Do not call fetch() for cached sourcesjuerg/fetch
-rw-r--r--buildstream/element.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index 70f5a470f..e810e990b 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -2030,7 +2030,8 @@ class Element(Plugin):
def _fetch(self):
previous_sources = []
for source in self.sources():
- source._fetch(previous_sources)
+ if source._get_consistency() == Consistency.RESOLVED:
+ source._fetch(previous_sources)
previous_sources.append(source)
#############################################################