diff --git a/tools/commands-packages.js b/tools/commands-packages.js index 118f34bdb3..31e980d329 100644 --- a/tools/commands-packages.js +++ b/tools/commands-packages.js @@ -2143,12 +2143,11 @@ main.registerCommand({ var toolRecord = _.findWhere(toolIsopack.toolsOnDisk, {arch: osArch}); if (!toolRecord) throw Error("missing tool for " + osArch); - files.symlink( - files.pathJoin( + + tmpTropo.linkToLatestMeteor(files.pathJoin( tmpTropo.packagePath(toolPackage, toolVersion, true), toolRecord.path, - 'meteor'), - files.pathJoin(tmpTropo.root, 'meteor')); + 'meteor')); files.createTarball( tmpTropo.root, diff --git a/tools/tropohouse.js b/tools/tropohouse.js index 48c472d927..c4ea8bfe9f 100644 --- a/tools/tropohouse.js +++ b/tools/tropohouse.js @@ -434,9 +434,9 @@ _.extend(exports.Tropohouse.prototype, { return files.readlink(linkPath); }, - replaceLatestMeteorSymlink: function (linkText) { + linkToLatestMeteor: function (scriptLocation) { var self = this; var linkPath = files.pathJoin(self.root, 'meteor'); - files.symlinkOverSync(linkText, linkPath); + files.symlinkOverSync(scriptLocation, linkPath); } }); diff --git a/tools/updater.js b/tools/updater.js index a861ab2528..5e33da0ead 100644 --- a/tools/updater.js +++ b/tools/updater.js @@ -197,7 +197,7 @@ var updateMeteorToolSymlink = function () { if (!toolRecord) throw Error("latest release has no tool?"); - tropohouse.default.replaceLatestMeteorSymlink( - files.pathJoin(relativeToolPath, toolRecord.path, 'meteor')); + tropohouse.default.linkToLatestMeteor(files.pathJoin( + relativeToolPath, toolRecord.path, 'meteor')); } };