summaryrefslogtreecommitdiff
path: root/src/buildstream/plugins/sources/_downloadablefilesource.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/plugins/sources/_downloadablefilesource.py')
-rw-r--r--src/buildstream/plugins/sources/_downloadablefilesource.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildstream/plugins/sources/_downloadablefilesource.py b/src/buildstream/plugins/sources/_downloadablefilesource.py
index 4e43ee3e3..581d32e7d 100644
--- a/src/buildstream/plugins/sources/_downloadablefilesource.py
+++ b/src/buildstream/plugins/sources/_downloadablefilesource.py
@@ -88,6 +88,9 @@ class DownloadableFileSource(Source):
def get_unique_key(self):
return [self.original_url, self.ref]
+ def is_cached(self) -> bool:
+ return os.path.isfile(self._get_mirror_file())
+
def get_consistency(self):
if self.ref is None:
return Consistency.INCONSISTENT