From c19e133b8b7cf61b045f7e4b0838da3ed0932e33 Mon Sep 17 00:00:00 2001 From: Avital Oliver Date: Tue, 7 Oct 2014 15:26:15 -0700 Subject: [PATCH] Show progress bar when downloading a release prior to springboarding --- tools/main.js | 6 ++++++ tools/tropohouse.js | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/main.js b/tools/main.js index da1a2e00db..3d16cdf626 100644 --- a/tools/main.js +++ b/tools/main.js @@ -349,6 +349,9 @@ var springboard = function (rel, releaseOverride) { // XXX split better try { + Console.setPretty(true); + Console.enableProgressBar(true); + var messages = buildmessage.capture({ title: "Downloading tools package " + toolsPkg + "@" + toolsVersion }, function () { @@ -359,6 +362,9 @@ var springboard = function (rel, releaseOverride) { definitelyNotLocal: true }); }); + + Console.setPretty(false); + Console.enableProgressBar(false); } catch (err) { // We have failed to download the tool that we are supposed to springboard // to! That's bad. Let's exit. diff --git a/tools/tropohouse.js b/tools/tropohouse.js index 9f8d67dfbd..ac7538a11a 100644 --- a/tools/tropohouse.js +++ b/tools/tropohouse.js @@ -155,7 +155,7 @@ _.extend(exports.Tropohouse.prototype, { var url = buildRecord.build.url; - var progress = buildmessage.addChildTracker("Download build"); + var progress = buildmessage.addChildTracker("Downloading build"); try { buildmessage.capture({}, function () { var packageTarball = httpHelpers.getUrl({ @@ -253,7 +253,7 @@ _.extend(exports.Tropohouse.prototype, { } buildmessage.enterJob({ - title: " downloading " + packageName + " at version " + version + " ...", + title: " Installing " + packageName + "@" + version + "..." }, function() { var buildTempDirs = []; // If there's already a package in the tropohouse, start with it.