Correct previous wrong reordering

This commit is contained in:
Avital Oliver
2013-03-06 15:42:18 -08:00
committed by David Glasser
parent d729cd84e9
commit 71cc2e61f5

View File

@@ -388,12 +388,13 @@ Fiber(function () {
// XXX think carefully about what happens if we double-update
var updatedFrom = opt.argv['updated-from'] || releaseVersion;
var didUpdate = warehouse.fetchLatestRelease();
// we need to update the global releaseVersion variable
// because that's what engineSpringboard reads
/* global */ releaseVersion = warehouse.latestRelease();
// XXX make errors look good
var didUpdate = warehouse.fetchLatestRelease();
if (didUpdate) {
console.log("Updated Meteor to release " + releaseVersion + ".");
engineSpringboard(['--updated-from=' + updatedFrom]);