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

Unified Diff: utils/pub/pub.dart

Issue 10628016: Add a Pub source for pub.dartlang.org. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 8 years, 6 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/pub.dart
diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart
index 37898c3adbbde4431419a077f334043b48012f5b..c0c346b48d4654d4d691b7a277d35af35a5040bf 100644
--- a/utils/pub/pub.dart
+++ b/utils/pub/pub.dart
@@ -16,6 +16,7 @@
#import('git_source.dart');
#import('package.dart');
#import('pubspec.dart');
+#import('repo_source.dart');
#import('sdk_source.dart');
#import('source.dart');
#import('source_registry.dart');
@@ -76,6 +77,8 @@ main() {
var cache = new SystemCache(cacheDir);
cache.sources.register(new SdkSource(sdkDir));
cache.sources.register(new GitSource());
+ cache.sources.register(new RepoSource());
+ // TODO(nweiz): Make 'repo' the default once pub.dartlang.org exists
cache.sources.setDefault('sdk');
// Select the command.
@@ -168,6 +171,7 @@ class PubCommand {
return commandFuture;
} catch (var error) {
handleError(error);
+ return new Future.immediate(null);
}
}).handleException(handleError);
}
« utils/pub/io.dart ('K') | « utils/pub/io.dart ('k') | utils/pub/pubspec.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698