diff options
Diffstat (limited to 'buildstream/element.py')
-rw-r--r-- | buildstream/element.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/buildstream/element.py b/buildstream/element.py index 3a9281f68..f96655fb9 100644 --- a/buildstream/element.py +++ b/buildstream/element.py @@ -1877,7 +1877,8 @@ class Element(Plugin): if self.__strong_cached and pull_buildtrees: # If we've specified a subdir, check if the subdir is cached locally - if self.__artifact.cached_buildtree(): + # or if it's possible to get + if self._cached_buildtree() or not self._buildtree_exists(): return False elif self.__strong_cached: return False |