mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Return an OS path for .meteor/local/dev_bundle.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user