Show progress bar when downloading a release prior to springboarding

This commit is contained in:
Avital Oliver
2014-10-07 15:26:15 -07:00
parent c99d7d42a6
commit c19e133b8b
2 changed files with 8 additions and 2 deletions

View File

@@ -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.

View File

@@ -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.