diff options
author | Anton Hansson <hansson@google.com> | 2019-10-03 14:16:38 +0100 |
---|---|---|
committer | Anton Hansson <hansson@google.com> | 2019-10-03 14:38:15 +0100 |
commit | dafd85d7386dc2a56bc3840e508fcad87fb1ae54 (patch) | |
tree | 1e77d525aa7ed82d2d58f9c9d6292e2df7d6830d /cppreopts | |
parent | 0edad652cf4a011d30f47818d0d2c59f0929aaec (diff) | |
download | extras-dafd85d7386dc2a56bc3840e508fcad87fb1ae54.tar.gz |
Make cppreopts.sh deal with new layout
.odex and .vdex files on system_other are being moved to a subdir
with the name of their source partition. Update cppreopts to
recognize this and pass the right source path to preopt2cachename.
Bug: 141707536
Test: manually verify name of dalvik-cache files post boot
Test: dumpsys package [system-package]; verify reason=prebuilt
Change-Id: Icb5b5307ad42b7c899e11212843ce4b96b015958
Diffstat (limited to 'cppreopts')
-rwxr-xr-x | cppreopts/cppreopts.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cppreopts/cppreopts.sh b/cppreopts/cppreopts.sh index 3416e675..d409db8d 100755 --- a/cppreopts/cppreopts.sh +++ b/cppreopts/cppreopts.sh @@ -53,7 +53,7 @@ if [ $# -eq 1 ]; then # NOTE: this implementation will break in any path with spaces to favor # background copy tasks for file in $(find ${mountpoint} -type f -name "*.odex" -o -type f -name "*.vdex" -o -type f -name "*.art"); do - real_name=${file/${mountpoint}/\/system} + real_name=${file/${mountpoint}/} dest_name=$(preopt2cachename ${real_name}) if ! test $? -eq 0 ; then log -p i -t cppreopts "Unable to figure out destination for ${file}" |