[gnome-continuous-yocto/gnomeostree-3.28-rocko: 2142/8267] bitbake:	toaster: update api to include local_source_dir
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 2142/8267] bitbake:	toaster: update api to include local_source_dir
- Date: Sat, 16 Dec 2017 22:48:53 +0000 (UTC)
commit e99b4cd625ca812cdd88a818a1ad11aa93b28d78
Author: Sujith H <sujith h gmail com>
Date:   Mon Aug 22 16:42:30 2016 +0100
    bitbake: 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]
    
    (Bitbake rev: 2b5728fc5c0e578560506697f271605e80b5918f)
    
    Signed-off-by: Sujith H <sujith h gmail com>
    Signed-off-by: Elliot Smith <elliot smith intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
 bitbake/lib/toaster/toastergui/api.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/bitbake/lib/toaster/toastergui/api.py b/bitbake/lib/toaster/toastergui/api.py
index b57f670..8dde128 100644
--- a/bitbake/lib/toaster/toastergui/api.py
+++ b/bitbake/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(
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]