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.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buildstream/plugins/sources/patch.py b/src/buildstream/plugins/sources/patch.py
index 1e70039bd..24b5bfe2f 100644
--- a/src/buildstream/plugins/sources/patch.py
+++ b/src/buildstream/plugins/sources/patch.py
@@ -55,6 +55,7 @@ class PatchSource(Source):
BST_REQUIRES_PREVIOUS_SOURCES_STAGE = True
def configure(self, node):
+ node.validate_keys(["path", "strip-level", *Source.COMMON_CONFIG_KEYS])
self.path = self.node_get_project_path(node.get_scalar('path'),
check_is_file=True)
self.strip_level = node.get_int("strip-level", default=1)