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

Unified Diff: utils/pub/sdk_source.dart

Issue 10916190: Support both new and old style package layouts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to review. Created 8 years, 3 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
Index: utils/pub/sdk_source.dart
diff --git a/utils/pub/sdk_source.dart b/utils/pub/sdk_source.dart
index 5984555fe3bb300bfcb0fd6d313597e4fc2f0218..3260e441a8c11cd03877d0b1f4445a7b97e9be15 100644
--- a/utils/pub/sdk_source.dart
+++ b/utils/pub/sdk_source.dart
@@ -58,10 +58,13 @@ class SdkSource extends Source {
sourcePath = join(rootDir, "lib", id.description);
return exists(sourcePath).chain((found) {
if (!found) return new Future<bool>.immediate(false);
- return createSymlink(sourcePath, destPath).transform((_) => true);
+ return createPackageSymlink(id.name, sourcePath, destPath).transform(
+ (_) => true);
});
}
- return createSymlink(sourcePath, destPath).transform((_) => true);
+
+ return createPackageSymlink(id.name, sourcePath, destPath).transform(
+ (_) => true);
});
}
}

Powered by Google App Engine
This is Rietveld 408576698