Chromium Code Reviews

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: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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 4ce5ff27dc638f183a0c606fbfb6cff95c3e031a..c32c5c9083ebe65d0a970660e345175329e145d9 100644
--- a/sdk/lib/_internal/pub_generated/lib/src/validator/license.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/validator/license.dart
@@ -2,7 +2,6 @@ library pub.validator.license;
import 'dart:async';
import 'package:path/path.dart' as path;
import '../entrypoint.dart';
-import '../io.dart';
import '../utils.dart';
import '../validator.dart';
class LicenseValidator extends Validator {
@@ -11,8 +10,8 @@ class LicenseValidator extends Validator {
return new Future.sync(() {
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