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

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

Issue 428313004: Support activating packages from local paths. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix deactivate. Created 6 years, 4 months 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
Index: sdk/lib/_internal/pub/lib/src/command/global_deactivate.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command/global_deactivate.dart b/sdk/lib/_internal/pub/lib/src/command/global_deactivate.dart
index 585d9d1524988d8795bba22fc2cb0581cd2e581a..21483479b0b0f5aa9821882b1fbb217b6b90562e 100644
--- a/sdk/lib/_internal/pub/lib/src/command/global_deactivate.dart
+++ b/sdk/lib/_internal/pub/lib/src/command/global_deactivate.dart
@@ -7,6 +7,7 @@ library pub.command.global_deactivate;
import 'dart:async';
import '../command.dart';
+import '../log.dart' as log;
import '../utils.dart';
/// Handles the `global deactivate` pub command.
@@ -28,7 +29,10 @@ class GlobalDeactivateCommand extends PubCommand {
usageError("Unexpected $arguments ${toSentence(unexpected)}.");
}
- globals.deactivate(commandOptions.rest.first);
+ if (!globals.deactivate(commandOptions.rest.first, logDeactivate: true)) {
+ dataError("No active package ${log.bold(commandOptions.rest.first)}.");
+ }
+
return null;
}
}
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/command/global_activate.dart ('k') | sdk/lib/_internal/pub/lib/src/global_packages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698