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

Unified Diff: utils/pub/command_update.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 | « utils/pub/command_install.dart ('k') | utils/pub/entrypoint.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/command_update.dart
diff --git a/utils/pub/command_update.dart b/utils/pub/command_update.dart
index 4757049cd26e335d63f0417f9c83d8af6557310f..5c556ce95b580704f4c2da61fe09b39c8338aa22 100644
--- a/utils/pub/command_update.dart
+++ b/utils/pub/command_update.dart
@@ -9,7 +9,7 @@ import 'entrypoint.dart';
import 'log.dart' as log;
import 'pub.dart';
-/// Handles the `update` pub command.
+/// Handles the `update` pub command.
class UpdateCommand extends PubCommand {
String get description =>
"Update the current package's dependencies to the latest versions.";
@@ -23,6 +23,8 @@ class UpdateCommand extends PubCommand {
} else {
future = entrypoint.updateDependencies(commandOptions.rest);
}
- return future.then((_) => log.message("Dependencies updated!"));
+ return future
+ .then((_) => log.message("Dependencies updated!"))
+ .then((_) => entrypoint.validateSdkConstraints());
}
}
« no previous file with comments | « utils/pub/command_install.dart ('k') | utils/pub/entrypoint.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698