summaryrefslogtreecommitdiff
path: root/src/buildstream/_stream.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_stream.py')
-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 db9794c45..18297c2e4 100644
--- a/src/buildstream/_stream.py
+++ b/src/buildstream/_stream.py
@@ -212,7 +212,7 @@ class Stream:
# definitions to control the execution environment only.
if directory is None:
- if not element._source_cached():
+ if 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())