Use dart pub subcommand in pub_get_offline.py (flutter/engine#32784)

This commit is contained in:
Alexander Thomas
2022-04-19 18:31:59 +00:00
committed by GitHub
parent 62c265a83d
commit aeeb6c9790

View File

@@ -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: