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

Unified Diff: lib/src/command/cache_add.dart

Issue 2079303003: Track Source objects in PackageNames. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Code review changes Created 4 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
« no previous file with comments | « lib/src/command/build.dart ('k') | lib/src/command/cache_repair.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/command/cache_add.dart
diff --git a/lib/src/command/cache_add.dart b/lib/src/command/cache_add.dart
index 9ae3d62ff924079d6b8c52c81c721f3457fba728..ae3c1c3369914060c9337ed253f29f4138728f21 100644
--- a/lib/src/command/cache_add.dart
+++ b/lib/src/command/cache_add.dart
@@ -53,7 +53,7 @@ class CacheAddCommand extends PubCommand {
}
// TODO(rnystrom): Support installing from git too.
- var source = cache.source("hosted");
+ var source = cache.hosted;
// TODO(rnystrom): Allow specifying the server.
var ids = (await source.getVersions(cache.sources.hosted.refFor(package)))
« no previous file with comments | « lib/src/command/build.dart ('k') | lib/src/command/cache_repair.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698