Fix unzip on sdk_mac build
Recent CL added a flag to an unzip command which does not restore
the timestamps of extracted files. This is necessary because the
extracted files are the output of the rule and thus the timestamp
must be newer than the timestamp of the inputs.
Unfortunately, the sdk_mac build has an old version of UnZip (5.52
vs 6.0) which does not support the flag. Replace it with find|touch.
Test: m
Change-Id: Ib1f218af4547a1d604b46e68b6ef50d45cb91ee9
diff --git a/core/definitions.mk b/core/definitions.mk
index 02fc77a..857b73c 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -2859,7 +2859,8 @@
$(call hiddenapi-soong-input-dex,$(2)): $(1)
@rm -rf `dirname $$@`
@mkdir -p `dirname $$@`
- unzip -o -DD -q $(1) 'classes*.dex' -d `dirname $$@`
+ unzip -o -q $(1) 'classes*.dex' -d `dirname $$@`
+ find `dirname $$@` -maxdepth 1 -name 'classes*.dex' | xargs touch
$(call hiddenapi-copy-dex-files,\
$(call hiddenapi-soong-input-dex,$(2)),\