Merge "apex: rm $out before decompressing an apex." into main am: f826c99ec2

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3213175

Change-Id: I18ce130423ca2af6346de98e4cd748729fa11d8a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jooyung Han
2024-08-09 01:50:49 +00:00
committed by Automerger Merge Worker

View File

@@ -43,9 +43,9 @@ var (
},
"abis", "allow-prereleased", "sdk-version", "skip-sdk-check")
decompressApex = pctx.StaticRule("decompressApex", blueprint.RuleParams{
Command: `${deapexer} decompress --copy-if-uncompressed --input ${in} --output ${out}`,
Command: `rm -rf $out && ${deapexer} decompress --copy-if-uncompressed --input ${in} --output ${out}`,
CommandDeps: []string{"${deapexer}"},
Description: "decompress",
Description: "decompress $out",
})
)