aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-10-21 16:07:49 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-10-21 16:07:49 +0000
commit3e0ceec3945b5f0fa6ecf4c9694ec7fdd858caf8 (patch)
tree82e241bcc1f721756bc1d17fe634972b5e267422
parent2304e204f5e21c0c2430585bb7feac99f416967a (diff)
parent28a0ee3240e635b1e0813fe9f08a89d1b2e88515 (diff)
downloadcommon-3e0ceec3945b5f0fa6ecf4c9694ec7fdd858caf8.tar.gz
Snap for 9204358 from 28a0ee3240e635b1e0813fe9f08a89d1b2e88515 to gki13-boot-releasegki13-boot-release
Change-Id: I6b81e1eaa68bec64a073196406ab48a39af6f586
-rwxr-xr-xbuild/mainline_modules_sdks.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/build/mainline_modules_sdks.py b/build/mainline_modules_sdks.py
index c1eb02da..7c9b8531 100755
--- a/build/mainline_modules_sdks.py
+++ b/build/mainline_modules_sdks.py
@@ -303,11 +303,6 @@ def set_default_timestamp(base_dir, paths):
p = os.path.join(base_dir, path)
os.utime(p, (timestamp, timestamp))
-# set the timestamp of the file path to default_zip_time.
-def set_default_timestamp_to_file(file_path):
- timestamp = default_zip_time.timestamp()
- os.utime(file_path, (timestamp, timestamp))
-
@dataclasses.dataclass()
class SnapshotBuilder:
@@ -541,8 +536,6 @@ java_sdk_library_import {{
with zipfile.ZipFile(sdk_zip_file, "r") as zipObj:
extracted_current_api = zipObj.extract(
member=current_api, path=snapshots_dir)
- set_default_timestamp_to_file(extracted_current_api)
- set_default_timestamp_to_file(latest_api)
# The diff tool has an exit code of 0, 1 or 2 depending on whether
# it find no differences, some differences or an error (like missing
# file). As 0 or 1 are both valid results this cannot use check=True