Remove timestamps from api diff files by using labels. am: 71883fca02 am: d2b740516e

Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/2264470

Change-Id: I6038b351a0a21c63c33d1b3ef9791ff60edaef3b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Gurpreet Singh
2022-10-21 16:51:10 +00:00
committed by Automerger Merge Worker

View File

@@ -542,7 +542,8 @@ java_sdk_library_import {{
# so disable the pylint check. # so disable the pylint check.
# pylint: disable=subprocess-run-check # pylint: disable=subprocess-run-check
diff = subprocess.run( diff = subprocess.run(
["diff", "-u0", latest_api, extracted_current_api], ["diff", "-u0", latest_api, extracted_current_api, "--label", latest_api, "--label",
extracted_current_api],
capture_output=True).stdout.decode("utf-8") capture_output=True).stdout.decode("utf-8")
file_object.write(diff) file_object.write(diff)