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(); |