| 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);
|
|
|
|
|