Formatting.

This commit is contained in:
Guillaume Endignoux
2020-04-28 14:05:36 +02:00
parent 463a289dd0
commit 7d47de2b3b

View File

@@ -273,12 +273,7 @@ class OpenSKInstaller:
stdout = None if self.args.verbose_build else subprocess.DEVNULL stdout = None if self.args.verbose_build else subprocess.DEVNULL
try: try:
subprocess.run( subprocess.run(
cmd, cmd, stdout=stdout, timeout=None, check=True, env=env, cwd=cwd)
stdout=stdout,
timeout=None,
check=True,
env=env,
cwd=cwd)
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
fatal("Failed to execute {}: {}".format(cmd[0], str(e))) fatal("Failed to execute {}: {}".format(cmd[0], str(e)))
@@ -322,7 +317,8 @@ class OpenSKInstaller:
rustup_target = ["rustup"] rustup_target = ["rustup"]
if self.args.verbose_build: if self.args.verbose_build:
rustup_target.extend(["--verbose"]) rustup_target.extend(["--verbose"])
rustup_target.extend(["target", "add", SUPPORTED_BOARDS[self.args.board].arch]) rustup_target.extend(
["target", "add", SUPPORTED_BOARDS[self.args.board].arch])
self.checked_command(rustup_target) self.checked_command(rustup_target)
info("Rust toolchain up-to-date") info("Rust toolchain up-to-date")