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

Unified Diff: sdk/lib/_internal/pub/test/serve_packages.dart

Issue 808713003: Remove barback from the repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 | « sdk/lib/_internal/pub/test/dependency_computer/utils.dart ('k') | sdk/lib/_internal/pub/test/test_pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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')) {
« no previous file with comments | « sdk/lib/_internal/pub/test/dependency_computer/utils.dart ('k') | sdk/lib/_internal/pub/test/test_pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698