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

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

Issue 2044253003: Refactor Source and SourceRegistry. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Rename LiveSource to BoundSource. 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/cache_add.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_list.dart
diff --git a/lib/src/command/cache_list.dart b/lib/src/command/cache_list.dart
index a510e6cf89941dc779c71b3dcf52dd252c4f5fc3..1e0577768f348a45f3f2f7d4d5d938f0beb919f1 100644
--- a/lib/src/command/cache_list.dart
+++ b/lib/src/command/cache_list.dart
@@ -20,7 +20,7 @@ class CacheListCommand extends PubCommand {
// TODO(keertip): Add flag to list packages from non default sources.
var packagesObj = <String, Map>{};
- var source = cache.sources.defaultSource as CachedSource;
+ var source = cache.defaultSource as CachedSource;
for (var package in source.getCachedPackages()) {
var packageInfo = packagesObj.putIfAbsent(package.name, () => {});
packageInfo[package.version.toString()] = {'location': package.dir};
« no previous file with comments | « lib/src/command/cache_add.dart ('k') | lib/src/command/cache_repair.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698