mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Always call updateMeteorToolSymlink after successful update.
https://github.com/meteor/meteor/pull/7340#issuecomment-231254368
This commit is contained in:
@@ -24,6 +24,7 @@ var packageClient = require('../packaging/package-client.js');
|
||||
var tropohouse = require('../packaging/tropohouse.js');
|
||||
|
||||
import * as cordova from '../cordova';
|
||||
import { updateMeteorToolSymlink } from "../packaging/updater.js";
|
||||
|
||||
// For each release (or package), we store a meta-record with its name,
|
||||
// maintainers, etc. This function takes in a name, figures out if
|
||||
@@ -1336,6 +1337,8 @@ var maybeUpdateRelease = function (options) {
|
||||
throw new Error("don't have a proper release?");
|
||||
}
|
||||
|
||||
updateMeteorToolSymlink(true);
|
||||
|
||||
// If we're not in an app, then we're basically done. The only thing left to
|
||||
// do is print out some messages explaining what happened (and advising the
|
||||
// user to run update from an app).
|
||||
|
||||
@@ -152,7 +152,7 @@ var maybeShowBanners = function () {
|
||||
|
||||
// Update ~/.meteor/meteor to point to the tool binary from the tools of the
|
||||
// latest recommended release on the default release track.
|
||||
var updateMeteorToolSymlink = function (printErrors) {
|
||||
export function updateMeteorToolSymlink(printErrors) {
|
||||
// Get the latest release version of METEOR. (*Always* of the default
|
||||
// track, not of whatever we happen to be running: we always want the tool
|
||||
// symlink to go to the default track.)
|
||||
@@ -215,4 +215,4 @@ var updateMeteorToolSymlink = function (printErrors) {
|
||||
tropohouse.default.linkToLatestMeteor(files.pathJoin(
|
||||
relativeToolPath, toolRecord.path, 'meteor'));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user