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

Unified Diff: lib/src/command/cache_repair.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_list.dart ('k') | lib/src/command/lish.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/command/cache_repair.dart
diff --git a/lib/src/command/cache_repair.dart b/lib/src/command/cache_repair.dart
index 5d7ab94a8e737764edf8a22dbbeeb63da4c38a84..cf7e6512b568fb6311f82fac3dea91c870d2ba7f 100644
--- a/lib/src/command/cache_repair.dart
+++ b/lib/src/command/cache_repair.dart
@@ -24,7 +24,8 @@ class CacheRepairCommand extends PubCommand {
var failures = [];
// Repair every cached source.
- for (var source in cache.sources) {
+ for (var source in cache.sources.all
+ .map((source) => cache.source(source.name))) {
if (source is! CachedSource) continue;
var results = await source.repairCachedPackages();
« no previous file with comments | « lib/src/command/cache_list.dart ('k') | lib/src/command/lish.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698