Merge pull request #6611 from laosb/patch-4

Correct the info of update when on latest recommended release.
This commit is contained in:
Ben Newman
2016-03-29 12:16:18 -04:00

View File

@@ -1302,10 +1302,16 @@ var maybeUpdateRelease = function (options) {
// the old tool.
//
// We'll still springboard forwards out of an RC, just not backwards.
Console.info("Not updating the release, because this app is at a " +
"newer release (" + release.current.name + ") than " +
"the latest recommended release " +
"(" + latestRelease + ").");
// There still has a possibility of already on the latest.
if (release.current.name === latestRelease) {
Console.info("Already on the latest recommended release " +
"(" + latestRelease + "). Not updating.");
} else {
Console.info("Not updating the release, because this app is at a " +
"newer release (" + release.current.name + ") than " +
"the latest recommended release " +
"(" + latestRelease + ").");
}
return 0;
}
}