mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
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: Bruce Dawson <brucedawson@chromium.org>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user