Add “pub cache repair” to forcibly re-install previously cached packages.
BUG=https://code.google.com/p/dart/issues/detail?id=5391 RELNOTE=Add "pub cache repair" command to re-install cached packages. R=nweiz@google.com Review URL: https://codereview.chromium.org//228703006 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@35111 260f80e4-7a28-3924-810f-c04153c831b5
Showing
- lib/src/command/cache.dart 3 additions, 1 deletionlib/src/command/cache.dart
- lib/src/command/cache_add.dart 1 addition, 1 deletionlib/src/command/cache_add.dart
- lib/src/command/cache_repair.dart 50 additions, 0 deletionslib/src/command/cache_repair.dart
- lib/src/package.dart 12 additions, 0 deletionslib/src/package.dart
- lib/src/source.dart 26 additions, 4 deletionslib/src/source.dart
- lib/src/source/git.dart 45 additions, 1 deletionlib/src/source/git.dart
- lib/src/source/hosted.dart 121 additions, 40 deletionslib/src/source/hosted.dart
- lib/src/source_registry.dart 10 additions, 1 deletionlib/src/source_registry.dart
- lib/src/system_cache.dart 6 additions, 2 deletionslib/src/system_cache.dart
- test/cache/repair/empty_cache_test.dart 16 additions, 0 deletionstest/cache/repair/empty_cache_test.dart
- test/cache/repair/handles_failure_test.dart 58 additions, 0 deletionstest/cache/repair/handles_failure_test.dart
- test/cache/repair/reinstalls_git_packages_test.dart 68 additions, 0 deletionstest/cache/repair/reinstalls_git_packages_test.dart
- test/cache/repair/reinstalls_hosted_packages_test.dart 56 additions, 0 deletionstest/cache/repair/reinstalls_hosted_packages_test.dart
- test/pub_test.dart 8 additions, 4 deletionstest/pub_test.dart
Loading
Please register or sign in to comment