diff options
author | Sujith H <sujith.h@gmail.com> | 2016-08-22 16:42:30 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-02 18:09:49 +0100 |
commit | e99b4cd625ca812cdd88a818a1ad11aa93b28d78 (patch) | |
tree | 8a63301bd470540af129951fb52d574141e2a886 /bitbake/lib/toaster | |
parent | fa48ca677c75d01cebe4e5d6519ed71c588fd93d (diff) | |
download | poky-e99b4cd625ca812cdd88a818a1ad11aa93b28d78.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/toaster')
-rw-r--r-- | 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 b57f670ba3..8dde1288fd 100644 --- a/bitbake/lib/toaster/toastergui/api.py +++ b/bitbake/lib/toaster/toastergui/api.py | |||
@@ -135,7 +135,7 @@ class XhrLayer(View): | |||
135 | Method: POST | 135 | Method: POST |
136 | 136 | ||
137 | Args: | 137 | Args: |
138 | vcs_url, dirpath, commit, up_branch, summary, description | 138 | vcs_url, dirpath, commit, up_branch, summary, description, local_source_dir |
139 | 139 | ||
140 | add_dep = append a layerversion_id as a dependency | 140 | add_dep = append a layerversion_id as a dependency |
141 | rm_dep = remove a layerversion_id as a depedency | 141 | rm_dep = remove a layerversion_id as a depedency |
@@ -166,6 +166,8 @@ class XhrLayer(View): | |||
166 | layer_version.layer.summary = request.POST["summary"] | 166 | layer_version.layer.summary = request.POST["summary"] |
167 | if "description" in request.POST: | 167 | if "description" in request.POST: |
168 | layer_version.layer.description = request.POST["description"] | 168 | layer_version.layer.description = request.POST["description"] |
169 | if "local_source_dir" in request.POST: | ||
170 | layer_version.layer.local_source_dir = request.POST["local_source_dir"] | ||
169 | 171 | ||
170 | if "add_dep" in request.POST: | 172 | if "add_dep" in request.POST: |
171 | lvd = LayerVersionDependency( | 173 | lvd = LayerVersionDependency( |