summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2018-07-31 12:45:57 +0100
committerTiago Gomes <tiago.gomes@codethink.co.uk>2018-08-02 12:33:17 +0100
commit0225ee147953cef0738b811ef5e9bf919e33c683 (patch)
treef44900f47039790c4a7a36cbfbdb178763043d2e
parent99ca4b77a7cba97d695b2183737f77d6ff33d4b7 (diff)
downloadbuildstream-0225ee147953cef0738b811ef5e9bf919e33c683.tar.gz
project: validate project paths (local plugin paths)
-rw-r--r--buildstream/_project.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/buildstream/_project.py b/buildstream/_project.py
index b761d650f..3ac562836 100644
--- a/buildstream/_project.py
+++ b/buildstream/_project.py
@@ -502,8 +502,11 @@ class Project():
if group in origin_dict:
del origin_dict[group]
if origin_dict['origin'] == 'local':
+ path = _yaml.node_get_project_path(origin, 'path',
+ self.directory,
+ check_is_dir=True)
# paths are passed in relative to the project, but must be absolute
- origin_dict['path'] = os.path.join(self.directory, origin_dict['path'])
+ origin_dict['path'] = os.path.join(self.directory, path)
destination.append(origin_dict)
# _ensure_project_dir()