Return an OS path for .meteor/local/dev_bundle.

This commit is contained in:
Ben Newman
2016-07-15 18:29:44 -04:00
parent f08ea70a47
commit 57ccaa27f9
2 changed files with 5 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ exports.makeLink = function (target, linkPath) {
}
};
// Note: this function returns an OS-specific path!
exports.readLink = function (linkPath) {
linkPath = files.convertToOSPath(linkPath);
@@ -32,5 +33,5 @@ exports.readLink = function (linkPath) {
linkPath = fs.readFileSync(linkPath, "utf8");
}
return files.convertToStandardPath(linkPath);
return linkPath;
};

View File

@@ -1427,7 +1427,9 @@ _.extend(exports.ReleaseFile.prototype, {
const newTarget = this.getDevBundle();
try {
if (newTarget === readLink(devBundleLink)) {
const oldOSPath = readLink(devBundleLink);
const oldTarget = files.convertToStandardPath(oldOSPath);
if (newTarget === oldTarget) {
// Don't touch .meteor/local/dev_bundle if it already points to
// the right target path.
return;