diff options
author | Jürg Billeter <j@bitron.ch> | 2020-04-25 09:24:12 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2020-04-25 09:24:12 +0200 |
commit | 67ea61f5be51db24c2366167cb372d817e1ab6ff (patch) | |
tree | 3da73b6a2e6f68c4151eea84a6a98c8be7b9b7a0 | |
parent | 968897f69af079658f2e1b85d6606d1b6fbd8235 (diff) | |
download | buildstream-67ea61f5be51db24c2366167cb372d817e1ab6ff.tar.gz |
_stream.py: shell(): Require sources only for build shellsjuerg/shell-sysroot
-rw-r--r-- | src/buildstream/_stream.py | 2 |
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()) ) |