Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Unified Diff: utils/pub/entrypoint.dart

Issue 12321020: Use relative symlinks for self links and secondary "packages" dirs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | utils/tests/pub/install/pub_install_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/entrypoint.dart
diff --git a/utils/pub/entrypoint.dart b/utils/pub/entrypoint.dart
index b2dc9b4d3b0366e237c735de9baaaa95242bb6a7..ab65950b0cac7758eaa44bfafeecf48e8538216c 100644
--- a/utils/pub/entrypoint.dart
+++ b/utils/pub/entrypoint.dart
@@ -232,7 +232,7 @@ class Entrypoint {
if (entryExists(linkPath)) return;
ensureDir(packagesDir);
return createPackageSymlink(root.name, root.dir, linkPath,
- isSelfLink: true);
+ isSelfLink: true, relative: true);
});
}
@@ -296,7 +296,7 @@ class Entrypoint {
return defer(() {
var symlink = path.join(dir, 'packages');
if (entryExists(symlink)) return;
- return createSymlink(packagesDir, symlink);
+ return createSymlink(packagesDir, symlink, relative: true);
});
}
}
« no previous file with comments | « no previous file | utils/tests/pub/install/pub_install_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698