Always call updateMeteorToolSymlink after successful update.

https://github.com/meteor/meteor/pull/7340#issuecomment-231254368
This commit is contained in:
Ben Newman
2016-07-08 11:51:20 -04:00
parent 0abebb0a35
commit e2dbb6093e
2 changed files with 5 additions and 2 deletions

View File

@@ -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).

View File

@@ -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'));
}
};
}