From aeeb6c97907e12f76541e3456f5bf535169e3acc Mon Sep 17 00:00:00 2001 From: Alexander Thomas Date: Tue, 19 Apr 2022 18:31:59 +0000 Subject: [PATCH] Use dart pub subcommand in pub_get_offline.py (flutter/engine#32784) --- engine/src/flutter/tools/pub_get_offline.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/src/flutter/tools/pub_get_offline.py b/engine/src/flutter/tools/pub_get_offline.py index 911a3cb8fa..4795871e40 100644 --- a/engine/src/flutter/tools/pub_get_offline.py +++ b/engine/src/flutter/tools/pub_get_offline.py @@ -65,10 +65,10 @@ def CheckPackage(package): def Main(): leading = os.path.join("src", "third_party", "dart", "tools", "sdks", "dart-sdk", "bin") - pub = "pub" + dart = "dart" if os.name == "nt": - pub = "pub.bat" - pubcmd = [os.path.abspath(os.path.join(leading, pub)), "get", "--offline"] + dart = "dart.exe" + pubcmd = [os.path.abspath(os.path.join(leading, dart)), "pub", "get", "--offline"] pub_count = 0 for package in ALL_PACKAGES: