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

Unified Diff: utils/pub/package.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « utils/pub/oauth2.dart ('k') | utils/pub/pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/package.dart
diff --git a/utils/pub/package.dart b/utils/pub/package.dart
index 69b548341bccd21c3baab3878f712ba6b46dffc0..70f469c0ea6eb69b897cdf1dff427625bafd7fa4 100644
--- a/utils/pub/package.dart
+++ b/utils/pub/package.dart
@@ -4,6 +4,7 @@
library package;
+import 'dart:async';
import 'io.dart';
import 'pubspec.dart';
import 'source.dart';
@@ -19,10 +20,10 @@ class Package {
SourceRegistry sources) {
var pubspecPath = join(packageDir, 'pubspec.yaml');
- return fileExists(pubspecPath).chain((exists) {
+ return fileExists(pubspecPath).then((exists) {
if (!exists) throw new PubspecNotFoundException(name);
return readTextFile(pubspecPath);
- }).transform((contents) {
+ }).then((contents) {
try {
var pubspec = new Pubspec.parse(contents, sources);
« no previous file with comments | « utils/pub/oauth2.dart ('k') | utils/pub/pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698