Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8fa6116a authored by Jooyung Han's avatar Jooyung Han
Browse files

apex: rm $out before decompressing an apex.

Otherwise, incremental build fails with "already exists".

Bug: 357916000
Test: incremental build with PRODUCT_COMPRESSED_APEX=false and prebuilt
  compressed APEXes
Change-Id: If2a0be735e3710afd1d40b16b43608028eb95c5a
parent edcbad40
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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",
	})
)