summaryrefslogtreecommitdiff
path: root/src/buildstream/_pipeline.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_pipeline.py')
-rw-r--r--src/buildstream/_pipeline.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildstream/_pipeline.py b/src/buildstream/_pipeline.py
index 8d0a3b411..1a98fccf5 100644
--- a/src/buildstream/_pipeline.py
+++ b/src/buildstream/_pipeline.py
@@ -29,7 +29,7 @@ from pyroaring import BitMap # pylint: disable=no-name-in-module
from ._exceptions import PipelineError
from ._message import Message, MessageType
from ._profile import Topics, PROFILER
-from . import Scope, Consistency
+from . import Scope
from ._project import ProjectRefStorage
from .types import _PipelineSelection
@@ -340,7 +340,7 @@ class Pipeline:
inconsistent_workspaced = []
with self._context.messenger.timed_activity("Checking sources"):
for element in elements:
- if element._get_consistency() == Consistency.INCONSISTENT:
+ if not element._has_all_sources_resolved():
if element._get_workspace():
inconsistent_workspaced.append(element)
else:
@@ -375,7 +375,7 @@ class Pipeline:
uncached = []
with self._context.messenger.timed_activity("Checking sources"):
for element in elements:
- if element._get_consistency() < Consistency.CACHED and not element._has_all_sources_in_source_cache():
+ if not element._has_all_sources_in_source_cache() and not element._has_all_sources_cached():
uncached.append(element)
if uncached: