| Index: utils/pub/io.dart
|
| diff --git a/utils/pub/io.dart b/utils/pub/io.dart
|
| index 11e6361357ebd4728e9aeb316c0248a29e1dc1c1..b96ffcaf932ced0ea8669699b7e5dab83a7f3dca 100644
|
| --- a/utils/pub/io.dart
|
| +++ b/utils/pub/io.dart
|
| @@ -353,7 +353,14 @@ Future<File> createPackageSymlink(String name, from, to,
|
| if (exists) {
|
| return createSymlink(from, to);
|
| } else {
|
| - printError('Warning: Package "$name" does not have a "lib" directory.');
|
| + // It's OK for the self link (i.e. the root package) to not have a lib
|
| + // directory since it may just be a leaf application that only has
|
| + // code in bin or web.
|
| + if (!isSelfLink) {
|
| + printError(
|
| + 'Warning: Package "$name" does not have a "lib" directory.');
|
| + }
|
| +
|
| return new Future.immediate(to);
|
| }
|
| });
|
|
|