Merge "Fixed the issue that dirname: META got zipped twice."
am: 8b6458e9a9
Change-Id: Idd8eb1727778c52a8abea497477e3999c3d9706d
diff --git a/core/Makefile b/core/Makefile
index ab88b90..5b31e73 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -2161,7 +2161,7 @@
@# Zip everything up, preserving symlinks and placing META/ files first to
@# help early validation of the .zip file while uploading it.
$(hide) find $(zip_root)/META | sort >$@.list
- $(hide) find $(zip_root) | grep -v "^$(zip_root)/META/" | sort >>$@.list
+ $(hide) find $(zip_root) -path $(zip_root)/META -prune -o -print | sort >>$@.list
$(hide) $(SOONG_ZIP) -d -o $@ -C $(zip_root) -l $@.list
.PHONY: target-files-package