summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorTakuto Ikuta <tikuta@chromium.org>2018-07-13 01:22:48 +0900
committerQijiang Fan <fqj@google.com>2020-06-05 09:57:39 +0900
commit851e2f7c8c14bad7fafe7037f3a781e2800fd487 (patch)
tree23c37067ceacd89604f8b5a1d8eb53a425dd8d95 /build
parentb60092d1246e01f272dbf708420864cc67ce4396 (diff)
downloadlibchrome-851e2f7c8c14bad7fafe7037f3a781e2800fd487.tar.gz
Keep timestamp in aar.py when file is not changed
This is a reland of https://chromium-review.googlesource.com/c/chromium/src/+/1127565 I didn't understand filecmp.dircmp. Changed to use md5_check.CallAndRecordIfStale instead. Also let ExtractAll create directory even when it is empty. Bug: 810298, 860251 Change-Id: I0d1e2e385ff1a12981473ef422099f638ca174cf Reviewed-on: https://chromium-review.googlesource.com/1132818 Reviewed-by: agrieve <agrieve@chromium.org> Commit-Queue: Takuto Ikuta <tikuta@chromium.org> Cr-Commit-Position: refs/heads/master@{#574589} CrOS-Libchrome-Original-Commit: 2d186e03f89aa3fa40dc7266cbc33a0310ac3dd8
Diffstat (limited to 'build')
-rw-r--r--build/android/gyp/util/build_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/build/android/gyp/util/build_utils.py b/build/android/gyp/util/build_utils.py
index 4640d80f81..f1764b9c89 100644
--- a/build/android/gyp/util/build_utils.py
+++ b/build/android/gyp/util/build_utils.py
@@ -255,6 +255,7 @@ def ExtractAll(zip_path, path=None, no_clobber=True, pattern=None,
with zipfile.ZipFile(zip_path) as z:
for name in z.namelist():
if name.endswith('/'):
+ MakeDirectory(os.path.join(path, name))
continue
if pattern is not None:
if not fnmatch.fnmatch(name, pattern):