mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
patch releases need to be recommended
for them to work with update --patch or for them to be advertised
This commit is contained in:
@@ -1403,6 +1403,14 @@ main.registerCommand({
|
||||
"You are at the latest patch version.\n");
|
||||
return 1;
|
||||
}
|
||||
var patchRecord = doOrDie(function () {
|
||||
return catalog.official.getReleaseVersion(r[0], updateTo);
|
||||
});
|
||||
if (!patchRecord || !patchRecord.recommended) {
|
||||
process.stderr.write(
|
||||
"You are at the latest patch version.\n");
|
||||
return 1;
|
||||
}
|
||||
releaseVersionsToTry = [updateTo];
|
||||
} else if (release.forced) {
|
||||
doOrDie(function () {
|
||||
|
||||
@@ -104,11 +104,14 @@ var maybeShowBanners = function () {
|
||||
var track = release.current.getReleaseTrack();
|
||||
var patchReleaseVersion = releaseData.patchReleaseVersion;
|
||||
if (patchReleaseVersion) {
|
||||
runLog.log("=> A patch (" +
|
||||
utils.displayRelease(track, patchReleaseVersion) +
|
||||
") for your current release is available!");
|
||||
runLog.log(" Update this project now with 'meteor update --patch'.");
|
||||
return;
|
||||
var patchRelease = catalog.official.getReleaseVersion(track, patchRelease);
|
||||
if (patchRelease && patchRelease.recommended) {
|
||||
runLog.log("=> A patch (" +
|
||||
utils.displayRelease(track, patchReleaseVersion) +
|
||||
") for your current release is available!");
|
||||
runLog.log(" Update this project now with 'meteor update --patch'.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// There's no patch (so no urgent exclamation!) but there may be something
|
||||
|
||||
Reference in New Issue
Block a user