Index: sdk/lib/_internal/pub/lib/src/command/upgrade.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/command/upgrade.dart b/sdk/lib/_internal/pub/lib/src/command/upgrade.dart |
index e8b6ad0bbba9a579a8a4544ed25cd73e6bc11468..c42c33b385b4df610dad2dd9fd01999158681274 100644 |
--- a/sdk/lib/_internal/pub/lib/src/command/upgrade.dart |
+++ b/sdk/lib/_internal/pub/lib/src/command/upgrade.dart |
@@ -8,6 +8,7 @@ import 'dart:async'; |
import '../command.dart'; |
import '../log.dart' as log; |
+import '../solver/version_solver.dart'; |
/// Handles the `upgrade` pub command. |
class UpgradeCommand extends PubCommand { |
@@ -30,8 +31,8 @@ class UpgradeCommand extends PubCommand { |
Future onRun() { |
var dryRun = commandOptions['dry-run']; |
- return entrypoint.acquireDependencies(useLatest: commandOptions.rest, |
- isUpgrade: true, dryRun: dryRun).then((_) { |
+ return entrypoint.acquireDependencies(SolveType.UPGRADE, |
+ useLatest: commandOptions.rest, dryRun: dryRun).then((_) { |
if (isOffline) { |
log.warning("Warning: Upgrading when offline may not update you to the " |
"latest versions of your dependencies."); |