From 67ea61f5be51db24c2366167cb372d817e1ab6ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Sat, 25 Apr 2020 09:24:12 +0200 Subject: _stream.py: shell(): Require sources only for build shells --- src/buildstream/_stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) ) -- cgit v1.2.1