clarifying comment

This commit is contained in:
Avital Oliver
2013-03-06 13:13:57 -08:00
committed by David Glasser
parent 95db2bb00b
commit 7fc3b10568

View File

@@ -388,9 +388,12 @@ Fiber(function () {
// XXX think carefully about what happens if we double-update
var updatedFrom = opt.argv['updated-from'] || releaseVersion;
// 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();
/* global */ releaseVersion = warehouse.latestRelease();
if (didUpdate) {
console.log("Updated Meteor to release " + releaseVersion + ".");
engineSpringboard(['--updated-from=' + updatedFrom]);