Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions src/buildstream/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -1264,10 +1264,12 @@ def _cached_failure(self):
# (bool): Whether this element can currently be built
#
def _buildable(self):
if self._fetch_needed():
# This check must be before `_fetch_needed()` as source cache status
# is not always available for non-build pipelines.
if not self.__assemble_scheduled:
return False

if not self.__assemble_scheduled:
if self._fetch_needed():
return False

return self.__build_deps_uncached == 0
Expand Down Expand Up @@ -2410,10 +2412,12 @@ def _update_ready_for_runtime_and_cached(self):
rdep.__build_deps_uncached -= 1
assert not rdep.__build_deps_uncached < 0

if rdep.__buildable_callback is not None and rdep._buildable():
if rdep._buildable():
rdep.__update_cache_key_non_strict()
rdep.__buildable_callback(rdep)
rdep.__buildable_callback = None

if rdep.__buildable_callback is not None:
rdep.__buildable_callback(rdep)
rdep.__buildable_callback = None

# _walk_artifact_files()
#
Expand Down