summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-04-25 09:24:12 +0200
committerJürg Billeter <j@bitron.ch>2020-04-25 09:24:12 +0200
commit67ea61f5be51db24c2366167cb372d817e1ab6ff (patch)
tree3da73b6a2e6f68c4151eea84a6a98c8be7b9b7a0
parent968897f69af079658f2e1b85d6606d1b6fbd8235 (diff)
downloadbuildstream-juerg/shell-sysroot.tar.gz
_stream.py: shell(): Require sources only for build shellsjuerg/shell-sysroot
-rw-r--r--src/buildstream/_stream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py
index 5d65a31a9..09e6dfb17 100644
--- a/src/buildstream/_stream.py
+++ b/src/buildstream/_stream.py
@@ -207,7 +207,7 @@ class Stream:
# Assert we have everything we need built, using the element
# definitions to control the execution environment only.
- if not element._has_all_sources_in_source_cache():
+ if scope == Scope.BUILD and not element._has_all_sources_in_source_cache():
raise StreamError(
"Sources for element {} are not cached." "Element must be fetched.".format(element._get_full_name())
)