Commit f5c054ce authored by Robert Liao's avatar Robert Liao Committed by LUCI CQ

Pretty-Print the win_toolchain JSON Output

This makes the file easier to read.

Change-Id: Ie5eac66582bd6f3ce3c31def6f591e001de9a79a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2893667
Auto-Submit: Robert Liao <robliao@chromium.org>
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
Reviewed-by: 's avatarBruce Dawson <brucedawson@chromium.org>
parent 0614591e
......@@ -576,7 +576,7 @@ def main():
os.path.join(abs_toolchain_target_dir, 'sysarm64'),
],
}
data_json = json.dumps(data)
data_json = json.dumps(data, indent=2)
data_path = os.path.join(target_dir, '..', 'data.json')
if not os.path.exists(data_path) or open(data_path).read() != data_json:
with open(data_path, 'w') as f:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment