Skip to contentSkip to conversation

toaster: projectpage Make sure build targets are space separated

PATCH In review Michael Wood 2 participants 2 messages Nov 17, 2015 – Nov 18, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toaster: projectpage Make sure build targets are space separated

Make sure the build targets are space separated when building multiple targets. Also fix error path now that YOCTO #7995 is resolved.

[YOCTO #8450]

---
 .../toaster/toastergui/static/js/projectpage.js    | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)
bitbake/lib/toaster/toastergui/static/js/projectpage.js +13 -9
index ae08d9a..8cbfa9e 100644
@@ -225,17 +225,21 @@ function projectPageInit(ctx) {
 
     var toBuild = "";
     freqBuildList.find(":checked").each(function(){
-      toBuild += $(this).val();
+      toBuild += $(this).val() + ' ';
     });
 
-    libtoaster.startABuild(libtoaster.ctx.projectBuildsUrl, libtoaster.ctx.projectId, toBuild, function(){
-      /* Build started */
-      window.location.replace(libtoaster.ctx.projectBuildsUrl);
-    },
-    function(){
-      /* Build start failed */
-      /* [YOCTO #7995] */
-      window.location.replace(libtoaster.ctx.projectBuildsUrl);
+    toBuild = toBuild.trim();
+
+    libtoaster.startABuild(libtoaster.ctx.projectBuildsUrl,
+      libtoaster.ctx.projectId,
+      toBuild,
+      function(){
+        /* Build request started */
+       window.location.replace(libtoaster.ctx.projectBuildsUrl);
+      },
+      function(){
+        /* Build request failed */
+        console.warn("Build request failed to be created");
     });
   });
 
Signature · 1 line
2.5.0
#1 lore raw
Quoted 4 lines · On 17/11/2015 11:57, "[email protected] on behalf of Michael…

Make sure the build targets are space separated when building multiple targets. Also fix error path now that YOCTO #7995 is resolved.

[YOCTO #8450]

This works for me. Thanks!

Belén

Quoted 52 lines

---
.../toaster/toastergui/static/js/projectpage.js | 22
+++++++++++++---------

1 file changed, 13 insertions(+), 9 deletions(-)
bitbake/lib/toaster/toastergui/static/js/projectpage.js +13 -9
index ae08d9a..8cbfa9e 100644
@@ -225,17 +225,21 @@ function projectPageInit(ctx) {
 
    var toBuild = "";
    freqBuildList.find(":checked").each(function(){
-      toBuild += $(this).val();
+      toBuild += $(this).val() + ' ';
    });
 
-    libtoaster.startABuild(libtoaster.ctx.projectBuildsUrl,
 libtoaster.ctx.projectId, toBuild, function(){
-      /* Build started */
-      window.location.replace(libtoaster.ctx.projectBuildsUrl);
-    },
-    function(){
-      /* Build start failed */
-      /* [YOCTO #7995] */
-      window.location.replace(libtoaster.ctx.projectBuildsUrl);
+    toBuild = toBuild.trim();
+
+    libtoaster.startABuild(libtoaster.ctx.projectBuildsUrl,
+      libtoaster.ctx.projectId,
+      toBuild,
+      function(){
+        /* Build request started */
+       window.location.replace(libtoaster.ctx.projectBuildsUrl);
+      },
+      function(){
+        /* Build request failed */
+        console.warn("Build request failed to be created");
    });
  });
Signature · 8 lines
-- 
2.5.0

-- 
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster