Index: utils/pub/io.dart |
diff --git a/utils/pub/io.dart b/utils/pub/io.dart |
index 2adef022262952f3ba53a196093974b6cf17279b..28a9cf2b2dd557578bf6e3a76149e178cc32e3b8 100644 |
--- a/utils/pub/io.dart |
+++ b/utils/pub/io.dart |
@@ -779,7 +779,7 @@ Future<bool> extractTarGz(InputStream stream, destination) { |
var processFuture = startProcess("tar", |
["--extract", "--gunzip", "--directory", destination]); |
processFuture.then((process) { |
- process.onExit = completer.complete; |
+ process.onExit = (exitCode) => completer.complete(exitCode); |
stream.pipe(process.stdin); |
process.stdout.pipe(stdout, close: false); |
process.stderr.pipe(stderr, close: false); |