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

Unified Diff: utils/pub/pub.dart

Issue 10749014: Refactor Source to take the system cache as a parameter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge Created 8 years, 5 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/pub/repo_source.dart » ('j') | utils/pub/system_cache.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/pub.dart
diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart
index 6712e3b2d123ee13a5ccfbaec00d8c80bab80c05..4b9c74cfe2b5325c89897cd84c4c2f1e043c6d45 100644
--- a/utils/pub/pub.dart
+++ b/utils/pub/pub.dart
@@ -69,9 +69,9 @@ main() {
}
var cache = new SystemCache(globalOptions['cachedir']);
- cache.sources.register(new SdkSource(globalOptions['sdkdir']));
- cache.sources.register(new GitSource());
- cache.sources.register(new RepoSource());
+ cache.register(new SdkSource(globalOptions['sdkdir']));
+ cache.register(new GitSource());
+ cache.register(new RepoSource());
// TODO(nweiz): Make 'repo' the default once pub.dartlang.org exists
cache.sources.setDefault('sdk');
« no previous file with comments | « no previous file | utils/pub/repo_source.dart » ('j') | utils/pub/system_cache.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698