| Index: sdk/lib/_internal/pub/test/serve_packages.dart
|
| diff --git a/sdk/lib/_internal/pub/test/serve_packages.dart b/sdk/lib/_internal/pub/test/serve_packages.dart
|
| index 607efd3840cb438b190dc122386820d69ce0094f..35c970f78cac4955bdd506f57b8b4809fb8fddc4 100644
|
| --- a/sdk/lib/_internal/pub/test/serve_packages.dart
|
| +++ b/sdk/lib/_internal/pub/test/serve_packages.dart
|
| @@ -153,8 +153,9 @@ class PackageServerBuilder {
|
| if (_packages.containsKey(name)) return;
|
| _packages[name] = [];
|
|
|
| + var root = packagePath(name);
|
| var pubspec = new Map.from(loadYaml(
|
| - readTextFile(p.join(repoRoot, 'pkg', name, 'pubspec.yaml'))));
|
| + readTextFile(p.join(root, 'pubspec.yaml'))));
|
|
|
| // Remove any SDK constraints since we don't have a valid SDK version
|
| // while testing.
|
| @@ -162,8 +163,7 @@ class PackageServerBuilder {
|
|
|
| _packages[name].add(new _ServedPackage(pubspec, [
|
| d.file('pubspec.yaml', yaml(pubspec)),
|
| - new d.DirectoryDescriptor.fromFilesystem('lib',
|
| - p.join(repoRoot, 'pkg', name, 'lib'))
|
| + new d.DirectoryDescriptor.fromFilesystem('lib', p.join(root, 'lib'))
|
| ]));
|
|
|
| if (pubspec.containsKey('dependencies')) {
|
|
|