| Index: utils/pub/io.dart
|
| diff --git a/utils/pub/io.dart b/utils/pub/io.dart
|
| index 805227bac6c50bac157d9b3ec4c1551d90559eef..384cc08b8a3994f16f0f83eeda8def56670a4dc8 100644
|
| --- a/utils/pub/io.dart
|
| +++ b/utils/pub/io.dart
|
| @@ -501,7 +501,15 @@ Future<PubProcessResult> runProcess(String executable, List<String> args,
|
|
|
| var future = Process.run(executable, args, options);
|
| return future.transform((result) {
|
| - return new PubProcessResult(result.stdout, result.stderr, result.exitCode);
|
| + // TODO(rnystrom): Remove this and change to returning one string.
|
| + List<String> toLines(String output) {
|
| + var lines = output.split("\n");
|
| + if (!lines.isEmpty() && lines.last() == "") lines.removeLast();
|
| + return lines;
|
| + }
|
| + return new PubProcessResult(toLines(result.stdout),
|
| + toLines(result.stderr),
|
| + result.exitCode);
|
| });
|
| }
|
|
|
|
|