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

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

Issue 583853002: Use precompiled dependencies in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/license.dart
diff --git a/sdk/lib/_internal/pub_generated/lib/src/validator/license.dart b/sdk/lib/_internal/pub_generated/lib/src/validator/license.dart
index 8d19d541e83ad8c5b7f946d6b5fccc93e5f6233e..8647565f0f24d360efc1438cfa5d4a824c2affc6 100644
--- a/sdk/lib/_internal/pub_generated/lib/src/validator/license.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/validator/license.dart
@@ -11,8 +11,8 @@ class LicenseValidator extends Validator {
return syncFuture(() {
var licenseLike =
new RegExp(r"^([a-zA-Z0-9]+[-_])?(LICENSE|COPYING)(\..*)?$");
- if (listDir(
- entrypoint.root.dir).map(path.basename).any(licenseLike.hasMatch)) {
+ if (entrypoint.root.listFiles(
+ recursive: false).map(path.basename).any(licenseLike.hasMatch)) {
return;
}
errors.add(

Powered by Google App Engine
This is Rietveld 408576698