[oe-commits] [bitbake] 14/22: toaster: update api to include local_source_dir
git at git.openembedded.org
git at git.openembedded.org
Fri Sep 2 17:11:14 UTC 2016
rpurdie pushed a commit to branch master
in repository bitbake.
commit 2b5728fc5c0e578560506697f271605e80b5918f
Author: Sujith H <sujith.h at gmail.com>
AuthorDate: Mon Aug 22 16:42:30 2016 +0100
toaster: update api to include local_source_dir
Add an additional argument to the api to handle
local_source_dir which is the value user passes
to import non-git layers.
[YOCTO #9913]
Signed-off-by: Sujith H <sujith.h at gmail.com>
Signed-off-by: Elliot Smith <elliot.smith at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/toaster/toastergui/api.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/toaster/toastergui/api.py b/lib/toaster/toastergui/api.py
index b57f670..8dde128 100644
--- a/lib/toaster/toastergui/api.py
+++ b/lib/toaster/toastergui/api.py
@@ -135,7 +135,7 @@ class XhrLayer(View):
Method: POST
Args:
- vcs_url, dirpath, commit, up_branch, summary, description
+ 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
@@ -166,6 +166,8 @@ class XhrLayer(View):
layer_version.layer.summary = request.POST["summary"]
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"]
if "add_dep" in request.POST:
lvd = LayerVersionDependency(
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list