diff options
author | Jian Cai <jiancai@google.com> | 2021-08-03 14:43:40 -0700 |
---|---|---|
committer | Jian Cai <jiancai@google.com> | 2021-08-03 22:14:37 +0000 |
commit | a0a6360987a17271c2a6bd5d2d5162dabdc0f31f (patch) | |
tree | e418e02ba4eea07da1d116678c7a0eae0e1a56a0 /llvm_tools | |
parent | 5cd9c8d2e198cc5f4314ce3a3d1fb1990b55b168 (diff) | |
download | toolchain-utils-a0a6360987a17271c2a6bd5d2d5162dabdc0f31f.tar.gz |
llvm_tools: add newline at the end of PATCHES.json
This appeases the "file needs a trailing newline" lint warning when
running `repo upload` with local changes created by
get_upstream_patch.py.
BUG=b:194873857
TEST=`repo upload` passed.
Change-Id: Icc4bf60009182290f2d0beb10f5ee7fefe14e044
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3068076
Reviewed-by: George Burgess <gbiv@chromium.org>
Tested-by: Jian Cai <jiancai@google.com>
Diffstat (limited to 'llvm_tools')
-rwxr-xr-x | llvm_tools/get_upstream_patch.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm_tools/get_upstream_patch.py b/llvm_tools/get_upstream_patch.py index 350fc25c..77783d41 100755 --- a/llvm_tools/get_upstream_patch.py +++ b/llvm_tools/get_upstream_patch.py @@ -4,8 +4,6 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -# pylint: disable=cros-logging-import - """Get an upstream patch to LLVM's PATCHES.json.""" from __future__ import print_function @@ -101,6 +99,7 @@ def add_patch(patches_json_path: str, patches_dir: str, temp_file = patches_json_path + '.tmp' with open(temp_file, 'w', encoding='utf-8') as f: json.dump(patches_json, f, indent=4, separators=(',', ': ')) + f.write('\n') os.rename(temp_file, patches_json_path) |