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

Unified Diff: sdk/lib/_internal/pub_generated/lib/src/package.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/package.dart
diff --git a/sdk/lib/_internal/pub_generated/lib/src/package.dart b/sdk/lib/_internal/pub_generated/lib/src/package.dart
index 73b5b05aac946805fa9fa4a22f022ee66b9924f2..64d89b06d78534a3bcb9803435c08b6e99d25346 100644
--- a/sdk/lib/_internal/pub_generated/lib/src/package.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/package.dart
@@ -70,7 +70,12 @@ class Package {
static final _blacklistedFiles = createFileFilter(['pubspec.lock']);
static final _blacklistedDirs = createDirectoryFilter(['packages']);
List<String> listFiles({String beneath, recursive: true}) {
- if (beneath == null) beneath = dir;
+ if (beneath == null) {
+ beneath = dir;
+ } else {
+ beneath = path.join(dir, beneath);
+ }
+ if (!dirExists(beneath)) return [];
var files;
if (git.isInstalled && dirExists(path.join(dir, '.git'))) {
var relativeBeneath = path.relative(beneath, from: dir);

Powered by Google App Engine
This is Rietveld 408576698