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

Unified Diff: sdk/lib/_internal/pub/lib/src/global_packages.dart

Issue 600313002: Fix path warning test. (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
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/test/global/binstubs/warns_if_not_on_path.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/global_packages.dart
diff --git a/sdk/lib/_internal/pub/lib/src/global_packages.dart b/sdk/lib/_internal/pub/lib/src/global_packages.dart
index de1cf148564c29ead9dd0c5d0ba00126421a0a85..0f87dc0fa0fb226ddb2d0595d11616e0a166dc2c 100644
--- a/sdk/lib/_internal/pub/lib/src/global_packages.dart
+++ b/sdk/lib/_internal/pub/lib/src/global_packages.dart
@@ -624,7 +624,7 @@ $invocation "\$@"
if (Platform.operatingSystem == "windows") {
// See if the shell can find one of the binstubs.
// "\q" means return exit code 0 if found or 1 if not.
- var result = Process.runSync("where", [r"\q", installed.first]);
+ var result = runProcessSync("where", [r"\q", installed.first]);
if (result.exitCode == 0) return;
var binDir = _binStubDir;
@@ -641,7 +641,7 @@ $invocation "\$@"
'A web search for "configure windows path" will show you how.');
} else {
// See if the shell can find one of the binstubs.
- var result = Process.runSync("which", [installed.first]);
+ var result = runProcessSync("which", [installed.first]);
if (result.exitCode == 0) return;
var binDir = _binStubDir;
@@ -656,7 +656,8 @@ $invocation "\$@"
"You can fix that by adding this to your shell's config file "
"(.bashrc, .bash_profile, etc.):\n"
"\n"
- "\n${log.bold('export PATH="\$PATH":"$binDir"')}\n");
+ " ${log.bold('export PATH="\$PATH":"$binDir"')}\n"
+ "\n");
}
}
}
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/test/global/binstubs/warns_if_not_on_path.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698