From 50a8d3a34ca89862b41fbe27f87bbe85a772db8b Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Mon, 22 Aug 2016 16:42:31 +0100 Subject: bitbake: toaster: layerdetails clean ups after integrating local layer changes A few clean ups for the work done to integrate editing imported local layers into the layer detail page. (Bitbake rev: 092ef32e695b43c3337b7116722c4c6eba981396) Signed-off-by: Michael Wood Signed-off-by: Elliot Smith Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/api.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/api.py') diff --git a/bitbake/lib/toaster/toastergui/api.py b/bitbake/lib/toaster/toastergui/api.py index 8dde1288fd..09fb02b8fc 100644 --- a/bitbake/lib/toaster/toastergui/api.py +++ b/bitbake/lib/toaster/toastergui/api.py @@ -135,7 +135,8 @@ class XhrLayer(View): Method: POST Args: - vcs_url, dirpath, commit, up_branch, summary, description, local_source_dir + vcs_url, dirpath, commit, up_branch, summary, description, + local_source_dir add_dep = append a layerversion_id as a dependency rm_dep = remove a layerversion_id as a depedency @@ -167,7 +168,8 @@ class XhrLayer(View): if "description" in request.POST: layer_version.layer.description = request.POST["description"] if "local_source_dir" in request.POST: - layer_version.layer.local_source_dir = request.POST["local_source_dir"] + layer_version.layer.local_source_dir = \ + request.POST["local_source_dir"] if "add_dep" in request.POST: lvd = LayerVersionDependency( -- cgit v1.2.3-54-g00ecf