mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
also, do not let people run update --patch from an old release
This commit is contained in:
@@ -1513,6 +1513,11 @@ var maybeUpdateRelease = function (options) {
|
||||
var record = doOrDie(function () {
|
||||
return catalog.official.getReleaseVersion(r[0], r[1]);
|
||||
});
|
||||
if (!record) {
|
||||
Console.error(
|
||||
"Cannot update to a patch release from an old release.");
|
||||
return 1;
|
||||
}
|
||||
var updateTo = record.patchReleaseVersion;
|
||||
if (!updateTo) {
|
||||
Console.error(
|
||||
|
||||
Reference in New Issue
Block a user