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

Unified Diff: utils/pub/sdk_source.dart

Issue 12171002: Tweak SDK constraint checking a bit. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Clean up Package and Pubspec a bit. Created 7 years, 11 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 | « utils/pub/pubspec.dart ('k') | utils/pub/source.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/sdk_source.dart
diff --git a/utils/pub/sdk_source.dart b/utils/pub/sdk_source.dart
index 124d2651bb1cd76d066ac412e0ff67a05bcd133a..6fbba0959441d2740337dd91a63cff79fe869722 100644
--- a/utils/pub/sdk_source.dart
+++ b/utils/pub/sdk_source.dart
@@ -24,10 +24,10 @@ class SdkSource extends Source {
return defer(() {
var packageDir = _getPackagePath(id);
// TODO(rnystrom): What if packageDir is null?
- var package = new Package(id.name, packageDir, systemCache.sources);
+ var pubspec = new Pubspec.load(id.name, packageDir, systemCache.sources);
// Ignore the pubspec's version, and use the SDK's.
- return new Pubspec(id.name, sdk.version, package.pubspec.dependencies,
- package.pubspec.environment);
+ return new Pubspec(id.name, sdk.version, pubspec.dependencies,
+ pubspec.environment);
});
}
« no previous file with comments | « utils/pub/pubspec.dart ('k') | utils/pub/source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698