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

Unified Diff: utils/pub/command_install.dart

Issue 12092080: Validate packages against their SDK constraints. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 7 years, 11 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
« no previous file with comments | « no previous file | utils/pub/command_update.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/command_install.dart
diff --git a/utils/pub/command_install.dart b/utils/pub/command_install.dart
index 001ba21cecf341a4c537766c7a0d14bc97b657c6..42970314eff76414ad8680711c7bf97392f48bea 100644
--- a/utils/pub/command_install.dart
+++ b/utils/pub/command_install.dart
@@ -10,14 +10,14 @@ import 'entrypoint.dart';
import 'log.dart' as log;
import 'pub.dart';
-/// Handles the `install` pub command.
+/// Handles the `install` pub command.
class InstallCommand extends PubCommand {
String get description => "Install the current package's dependencies.";
String get usage => "pub install";
Future onRun() {
- return entrypoint.installDependencies().then((_) {
- log.message("Dependencies installed!");
- });
+ return entrypoint.installDependencies()
+ .then((_) => log.message("Dependencies installed!"))
+ .then((_) => entrypoint.validateSdkConstraints());
}
}
« no previous file with comments | « no previous file | utils/pub/command_update.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698