summaryrefslogtreecommitdiff
path: root/buildstream/source.py
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.co.uk>2017-09-07 15:40:57 +0100
committerTristan Maat <tristan.maat@codethink.co.uk>2017-09-14 11:05:18 +0100
commitd56f472ddc6b6ff364aaa74cf1dac30be0d774de (patch)
tree9d21e68c469433f33387ab9639bf39627dcade65 /buildstream/source.py
parent80e53b1a3dd7bf21b55da86b7a982c3f3f5827a2 (diff)
downloadbuildstream-d56f472ddc6b6ff364aaa74cf1dac30be0d774de.tar.gz
Add source plugin node validations
Diffstat (limited to 'buildstream/source.py')
-rw-r--r--buildstream/source.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/buildstream/source.py b/buildstream/source.py
index 09dbae138..a18910eb9 100644
--- a/buildstream/source.py
+++ b/buildstream/source.py
@@ -76,6 +76,13 @@ class Source(Plugin):
self.configure(meta.config)
+ COMMON_CONFIG_KEYS = ['kind', 'directory']
+ """Common source config keys
+
+ Source config keys that must not be accessed in configure(), and
+ should be checked for using node_validate().
+ """
+
def get_mirror_directory(self):
"""Fetches the directory where this source should store things