[Toaster] [review-request][PATCH 1/2] bitbake: toaster: BuildButton target input allow building targets with tasks

Michael Wood michael.g.wood at intel.com
Fri Mar 27 08:49:54 PDT 2015


Allow the input for targets to contain tasks in the form target:task

[YOCTO #7501]

Signed-off-by: Michael Wood <michael.g.wood at intel.com>
---
 bitbake/lib/toaster/toastergui/static/js/base.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/bitbake/lib/toaster/toastergui/static/js/base.js b/bitbake/lib/toaster/toastergui/static/js/base.js
index 777ab43..f57e4d9 100644
--- a/bitbake/lib/toaster/toastergui/static/js/base.js
+++ b/bitbake/lib/toaster/toastergui/static/js/base.js
@@ -88,10 +88,9 @@ function basePageInit (ctx) {
       if (!newBuildTargetInput.val())
         return;
 
-      if (!selectedTarget)
-        selectedTarget = { name: newBuildTargetInput.val() };
+      var selectedTargetName = newBuildTargetInput.val();
       /* fire and forget */
-      libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId, selectedTarget.name, null, null);
+      libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId, selectedTargetName, null, null);
       window.location.replace(ctx.projectPageUrl+ctx.projectId);
     });
 
-- 
2.1.0



More information about the toaster mailing list