| Index: sdk/lib/_internal/pub/lib/src/command/cache_repair.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/command/cache_repair.dart b/sdk/lib/_internal/pub/lib/src/command/cache_repair.dart
|
| index 450951b238b2330d47351266e0f9a0f991d9dcd0..5a1a557941da898c31552204d5f1da68a56f24c9 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/command/cache_repair.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/command/cache_repair.dart
|
| @@ -10,6 +10,7 @@ import '../command.dart';
|
| import '../exit_codes.dart' as exit_codes;
|
| import '../io.dart';
|
| import '../log.dart' as log;
|
| +import '../source/cached.dart';
|
| import '../utils.dart';
|
|
|
| /// Handles the `cache repair` pub command.
|
| @@ -24,7 +25,7 @@ class CacheRepairCommand extends PubCommand {
|
|
|
| // Repair every cached source.
|
| return Future.forEach(cache.sources.where(
|
| - (source) => source.shouldCache), (source) {
|
| + (source) => source is CachedSource), (source) {
|
| return source.repairCachedPackages().then((results) {
|
| successes += results.first;
|
| failures += results.last;
|
|
|