Chromium Code Reviews

Unified Diff: utils/pub/pub.dart

Issue 11871028: Clean up code that locates SDK and SDK version. (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.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « pkg/path/lib/path.dart ('k') | utils/pub/root_source.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/pub.dart
diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart
index ae6c13a7df77cf1cb532746fd7246244c88b7f84..ac700f9b0de439d4c1e31ad157f806abaa6e4e62 100644
--- a/utils/pub/pub.dart
+++ b/utils/pub/pub.dart
@@ -110,9 +110,6 @@ main() {
break;
}
- // TODO(nweiz): Have a fallback for this this out automatically once 1145 is
- // fixed.
- var sdkDir = Platform.environment['DART_SDK'];
var cacheDir;
if (Platform.environment.containsKey('PUB_CACHE')) {
cacheDir = Platform.environment['PUB_CACHE'];
@@ -123,7 +120,7 @@ main() {
cacheDir = '${Platform.environment['HOME']}/.pub-cache';
}
- var cache = new SystemCache.withSources(cacheDir, sdkDir);
+ var cache = new SystemCache.withSources(cacheDir);
// Select the command.
var command = pubCommands[globalOptions.rest[0]];
@@ -139,7 +136,7 @@ main() {
command.run(cache, globalOptions, commandArgs);
}
-/// Displays usage information for the app.
+/// Displays usage information for the app.
void printUsage([String description = 'Pub is a package manager for Dart.']) {
// Build up a buffer so it shows up as a single log entry.
var buffer = new StringBuffer();
@@ -283,7 +280,7 @@ abstract class PubCommand {
/// command is synchronous, it may return `null`.
Future onRun();
- /// Displays usage information for this command.
+ /// Displays usage information for this command.
void printUsage([String description]) {
if (description == null) description = this.description;
« no previous file with comments | « pkg/path/lib/path.dart ('k') | utils/pub/root_source.dart » ('j') | no next file with comments »

Powered by Google App Engine