let you update sans --release to a non-downloaded thing

This commit is contained in:
David Glasser
2013-03-06 12:44:36 -08:00
parent 3b2aee46f7
commit 95db2bb00b

View File

@@ -390,9 +390,9 @@ Fiber(function () {
// XXX make errors look good
var didUpdate = warehouse.fetchLatestRelease();
/* global */ releaseVersion = warehouse.latestRelease();
if (didUpdate) {
/* global */ releaseVersion = warehouse.latestRelease();
console.log("Updated Meteor to release " + releaseVersion);
console.log("Updated Meteor to release " + releaseVersion + ".");
engineSpringboard(['--updated-from=' + updatedFrom]);
// If the engine for release is different, then engineSpringboard
// execs and does not return. Otherwise, keeps going.
@@ -434,6 +434,7 @@ Fiber(function () {
// This is the right spot to do any other changes we need to the app in
// order to update it for the new release (new metadata file formats,
// etc, or maybe even updating renamed APIs).
// XXX should we really print the full path here (appDir)?
console.log("Updated app '%s' to release %s from release %s.",
appDir, releaseVersion, appRelease);
// XXX print change log