Merge "Don't use the same temp directory to uncompress dex" am: 9963b1af06
am: 4adb37dc4e
Change-Id: Ic56126482827d08a0869d30b839fb08eb410870e
This commit is contained in:
@@ -2601,11 +2601,12 @@ endef
|
|||||||
#
|
#
|
||||||
define uncompress-dexs
|
define uncompress-dexs
|
||||||
$(hide) if (zipinfo $@ '*.dex' 2>/dev/null | grep -v ' stor ' >/dev/null) ; then \
|
$(hide) if (zipinfo $@ '*.dex' 2>/dev/null | grep -v ' stor ' >/dev/null) ; then \
|
||||||
rm -rf $(dir $@)uncompresseddexs && mkdir $(dir $@)uncompresseddexs; \
|
tmpdir=$@.tmpdir; \
|
||||||
unzip -q $@ '*.dex' -d $(dir $@)uncompresseddexs && \
|
rm -rf $$tmpdir && mkdir $$tmpdir; \
|
||||||
|
unzip -q $@ '*.dex' -d $$tmpdir && \
|
||||||
zip -qd $@ '*.dex' && \
|
zip -qd $@ '*.dex' && \
|
||||||
( cd $(dir $@)uncompresseddexs && find . -type f | sort | zip -qD -X -0 ../$(notdir $@) -@ ) && \
|
( cd $$tmpdir && find . -type f | sort | zip -qD -X -0 ../$(notdir $@) -@ ) && \
|
||||||
rm -rf $(dir $@)uncompresseddexs; \
|
rm -rf $$tmpdir; \
|
||||||
fi
|
fi
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user