Chromium Code Reviews

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

Issue 365993007: Support "pub downgrade". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: sdk/lib/_internal/pub/lib/src/command/get.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command/get.dart b/sdk/lib/_internal/pub/lib/src/command/get.dart
index 3c066fdbabae3c7ebde91eac83233c9c7ff45add..7394e0c76ae1312e8c9037d4f175af677c3e4be3 100644
--- a/sdk/lib/_internal/pub/lib/src/command/get.dart
+++ b/sdk/lib/_internal/pub/lib/src/command/get.dart
@@ -7,6 +7,7 @@ library pub.command.get;
import 'dart:async';
import '../command.dart';
+import '../solver/version_solver.dart';
/// Handles the `get` pub command.
class GetCommand extends PubCommand {
@@ -25,6 +26,7 @@ class GetCommand extends PubCommand {
}
Future onRun() {
- return entrypoint.acquireDependencies(dryRun: commandOptions['dry-run']);
+ return entrypoint.acquireDependencies(SolveType.GET,
+ dryRun: commandOptions['dry-run']);
}
}

Powered by Google App Engine