summaryrefslogtreecommitdiff
path: root/src/buildstream/plugins/sources/patch.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/plugins/sources/patch.py')
-rw-r--r--src/buildstream/plugins/sources/patch.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/buildstream/plugins/sources/patch.py b/src/buildstream/plugins/sources/patch.py
index 082983023..f33dfedec 100644
--- a/src/buildstream/plugins/sources/patch.py
+++ b/src/buildstream/plugins/sources/patch.py
@@ -45,7 +45,7 @@ details on common configuration options for sources.
"""
import os
-from buildstream import Source, SourceError, Consistency
+from buildstream import Source, SourceError
from buildstream import utils
@@ -67,8 +67,11 @@ class PatchSource(Source):
def get_unique_key(self):
return [self.path, utils.sha256sum(self.fullpath), self.strip_level]
- def get_consistency(self):
- return Consistency.CACHED
+ def is_resolved(self):
+ return True
+
+ def is_cached(self):
+ return True
def load_ref(self, node):
pass