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

Unified Diff: utils/pub/hosted_source.dart

Issue 11151035: Download packages to temp dir inside system cache. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | utils/pub/pub.dart » ('j') | utils/pub/pub.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/hosted_source.dart
diff --git a/utils/pub/hosted_source.dart b/utils/pub/hosted_source.dart
index 2d5c1f5900752fb5eb7b6354223c7e236d5b46d0..4ca407420b45dc165e8bc40f6840f568ee0837f6 100644
--- a/utils/pub/hosted_source.dart
+++ b/utils/pub/hosted_source.dart
@@ -77,7 +77,8 @@ class HostedSource extends Source {
// Download and extract the archive to a temp directory.
var tempDir;
- return Futures.wait([httpGet(fullUrl), createTempDir()]).chain((args) {
+ return Futures.wait([httpGet(fullUrl),
+ systemCache.createTempDir()]).chain((args) {
tempDir = args[1];
return timeout(extractTarGz(args[0], tempDir), HTTP_TIMEOUT,
'Timed out while fetching URL "$fullUrl".');
« no previous file with comments | « no previous file | utils/pub/pub.dart » ('j') | utils/pub/pub.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698