Chromium Code Reviews

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: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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..d3e3a7d8d28ee25a5db9d7c6a555a8fb489f0609 100644
--- a/lib/src/command/cache_repair.dart
+++ b/lib/src/command/cache_repair.dart
@@ -24,7 +24,7 @@ class CacheRepairCommand extends PubCommand {
var failures = [];
// Repair every cached source.
- for (var source in cache.sources) {
+ for (var source in cache.liveSources) {
if (source is! CachedSource) continue;
var results = await source.repairCachedPackages();

Powered by Google App Engine