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

Unified Diff: dart/utils/pub/pub.dart

Issue 11174004: Merge revisions 13674, 13676, 13677, 13678 to trunk (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
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 | « dart/utils/pub/io.dart ('k') | dart/utils/pub/system_cache.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/utils/pub/pub.dart
===================================================================
--- dart/utils/pub/pub.dart (revision 13677)
+++ dart/utils/pub/pub.dart (working copy)
@@ -102,7 +102,7 @@
}
var commandArgs =
- globalOptions.rest.getRange(1, globalOptions.rest.length - 1);
+ globalOptions.rest.getRange(1, globalOptions.rest.length - 1);
command.run(cache, globalOptions, commandArgs);
}
@@ -221,6 +221,8 @@
}
});
+ future = future.chain((_) => cache_.deleteTempDir());
+
future.handleException((e) {
if (e is PubspecNotFoundException && e.name == null) {
e = 'Could not find a file named "pubspec.yaml" in the directory '
@@ -232,6 +234,7 @@
handleError(e, future.stackTrace);
});
+
// Explicitly exit on success to ensure that any dangling dart:io handles
// don't cause the process to never terminate.
future.then((_) => exit(0));
« no previous file with comments | « dart/utils/pub/io.dart ('k') | dart/utils/pub/system_cache.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698