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

Unified Diff: sdk/lib/_internal/pub/lib/src/io.dart

Issue 15796003: Include Platform.envrironment in pub, when passing custom environment option. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/io.dart
diff --git a/sdk/lib/_internal/pub/lib/src/io.dart b/sdk/lib/_internal/pub/lib/src/io.dart
index f0f83c954bf804325d56259a2a6a098cf205f66a..659661fe547d274b4d09107d482377298227b53c 100644
--- a/sdk/lib/_internal/pub/lib/src/io.dart
+++ b/sdk/lib/_internal/pub/lib/src/io.dart
@@ -592,12 +592,19 @@ Future _doProcess(Function fn, String executable, List<String> args,
executable = "cmd";
}
+ var env = null;
+ if (environment != null) {
+ env = new Map.from(Platform.environment);
+ environment.forEach((key, value) => env[key] = value);
nweiz 2013/05/28 18:32:32 Use mapAddAll from utils.dart.
+ }
+
nweiz 2013/05/28 18:32:32 extra newline
+
log.process(executable, args);
return fn(executable,
args,
workingDirectory: workingDir,
- environment: environment);
+ environment: env);
}
/// Wraps [input] to provide a timeout. If [input] completes before
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698