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

Unified Diff: sdk/lib/_internal/pub_generated/lib/src/validator/name.dart

Issue 566093003: Create binstubs for executables when activating a package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise! Created 6 years, 3 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
Index: sdk/lib/_internal/pub_generated/lib/src/validator/name.dart
diff --git a/sdk/lib/_internal/pub_generated/lib/src/validator/name.dart b/sdk/lib/_internal/pub_generated/lib/src/validator/name.dart
index 10171e1fb2a799dc96d6d8370efed5bfd46f32e9..96508d104a21697f9467859dff2f3ab151b78389 100644
--- a/sdk/lib/_internal/pub_generated/lib/src/validator/name.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/validator/name.dart
@@ -65,9 +65,8 @@ class NameValidator extends Validator {
}
List<String> get _libraries {
var libDir = path.join(entrypoint.root.dir, "lib");
- if (!dirExists(libDir)) return [];
return entrypoint.root.listFiles(
- beneath: libDir).map(
+ beneath: "lib").map(
(file) =>
path.relative(
file,

Powered by Google App Engine
This is Rietveld 408576698