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

Unified Diff: sdk/lib/_internal/pub/lib/src/command/cache_repair.dart

Issue 745153002: Make pub's binstubs resilient to changes in snapshot format. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 6 years 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 | « no previous file | sdk/lib/_internal/pub/lib/src/entrypoint.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dfeab5eaa55f085668d51f093b5ed140db28f3ef..d5b3212c9ffcb6b467a805b229363ec77be0a599 100644
--- a/sdk/lib/_internal/pub/lib/src/command/cache_repair.dart
+++ b/sdk/lib/_internal/pub/lib/src/command/cache_repair.dart
@@ -42,6 +42,17 @@ class CacheRepairCommand extends PubCommand {
log.message("Failed to reinstall ${log.red(failures)} $packages.");
}
+ var results = await globals.repairActivatedPackages();
+ if (results.first > 0) {
+ var packages = pluralize("package", results.first);
+ log.message("Reactivated ${log.green(results.first)} $packages.");
+ }
+
+ if (results.last > 0) {
+ var packages = pluralize("package", results.last);
+ log.message("Failed to reactivate ${log.red(results.last)} $packages.");
+ }
+
if (successes == 0 && failures == 0) {
log.message("No packages in cache, so nothing to repair.");
}
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/entrypoint.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698