diff options
Diffstat (limited to 'src/buildstream/source.py')
-rw-r--r-- | src/buildstream/source.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/buildstream/source.py b/src/buildstream/source.py index f49cdb493..4f1133de7 100644 --- a/src/buildstream/source.py +++ b/src/buildstream/source.py @@ -783,10 +783,15 @@ class Source(Plugin): if self.__consistency == Consistency.CACHED: self.validate_cache() - # Return cached consistency + # Get whether the source is consistent # - def _get_consistency(self): - return self.__consistency + def _is_resolved(self): + return self.__consistency >= Consistency.RESOLVED + + # Get whether the source is cached by the source plugin + # + def _is_cached(self): + return self.__consistency >= Consistency.CACHED # Wrapper function around plugin provided fetch method # |