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

Unified Diff: lib/src/command/build.dart

Issue 2079303003: Track Source objects in PackageNames. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Code review changes Created 4 years, 6 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 | « no previous file | lib/src/command/cache_add.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/command/build.dart
diff --git a/lib/src/command/build.dart b/lib/src/command/build.dart
index 44b634c47c8d8135603bcfd8f943a204229585b4..38397d150c8ae2c24dc1ed738fd3f3486da84bd8 100644
--- a/lib/src/command/build.dart
+++ b/lib/src/command/build.dart
@@ -11,6 +11,7 @@ import '../barback/asset_environment.dart';
import '../exit_codes.dart' as exit_codes;
import '../io.dart';
import '../log.dart' as log;
+import '../source/hosted.dart';
import '../utils.dart';
import 'barback.dart';
@@ -202,7 +203,7 @@ class BuildCommand extends BarbackCommand {
Future _copyBrowserJsFiles(Iterable<AssetId> entrypoints, AssetSet assets) {
// Must depend on the browser package.
if (!entrypoint.root.immediateDependencies.any(
- (dep) => dep.name == 'browser' && dep.source == 'hosted')) {
+ (dep) => dep.name == 'browser' && dep.source is HostedSource)) {
return new Future.value();
}
« no previous file with comments | « no previous file | lib/src/command/cache_add.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698