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

Unified Diff: sdk/lib/_internal/pub/bin/pub.dart

Issue 16854005: First pass at build dependency graph for barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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
Index: sdk/lib/_internal/pub/bin/pub.dart
diff --git a/sdk/lib/_internal/pub/bin/pub.dart b/sdk/lib/_internal/pub/bin/pub.dart
index 5c893e1d3e14e56ef0121575389d2dbf92343885..79711ddb280a9b7b58df97b92d3f38a2672d12f5 100644
--- a/sdk/lib/_internal/pub/bin/pub.dart
+++ b/sdk/lib/_internal/pub/bin/pub.dart
@@ -73,18 +73,8 @@ void main() {
log.fine('Pub ${sdk.version}');
- var cacheDir;
- if (Platform.environment.containsKey('PUB_CACHE')) {
- cacheDir = Platform.environment['PUB_CACHE'];
- } else if (Platform.operatingSystem == 'windows') {
- var appData = Platform.environment['APPDATA'];
- cacheDir = path.join(appData, 'Pub', 'Cache');
- } else {
- cacheDir = '${Platform.environment['HOME']}/.pub-cache';
- }
-
validatePlatform().then((_) {
- PubCommand.commands[options.command.name].run(cacheDir, options);
+ PubCommand.commands[options.command.name].run(options);
});
}

Powered by Google App Engine
This is Rietveld 408576698