Index: sdk/lib/_internal/pub/lib/src/source/hosted.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/source/hosted.dart b/sdk/lib/_internal/pub/lib/src/source/hosted.dart |
index 5dcba33efcffd135d2d7b46745fee0a8ff704039..2c12dd8c2256cbf964b842ba289f2d97b6bcac12 100644 |
--- a/sdk/lib/_internal/pub/lib/src/source/hosted.dart |
+++ b/sdk/lib/_internal/pub/lib/src/source/hosted.dart |
@@ -171,7 +171,7 @@ class HostedSource extends CachedSource { |
/// into [destPath]. |
Future<bool> _download(String server, String package, Version version, |
String destPath) { |
- return syncFuture(() { |
+ return new Future.sync(() { |
var url = Uri.parse("$server/packages/$package/versions/$version.tar.gz"); |
log.io("Get package from $url."); |
log.message('Downloading ${log.bold(package)} ${version}...'); |