Exclude META-INF/ from repackaged source jar in snapshot
Prevents the META-INF/MANIFEST.MF file from the source jar from being copied to the snapshot zip file. Bug: 143678475 Test: m conscrypt-module-sdk manually check contents of generated zip Change-Id: I6eca1435dfc25b562e49de46b049fa81cf8daf90
This commit is contained in:
@@ -30,7 +30,7 @@ var pctx = android.NewPackageContext("android/soong/sdk")
|
|||||||
var (
|
var (
|
||||||
repackageZip = pctx.AndroidStaticRule("SnapshotRepackageZip",
|
repackageZip = pctx.AndroidStaticRule("SnapshotRepackageZip",
|
||||||
blueprint.RuleParams{
|
blueprint.RuleParams{
|
||||||
Command: `${config.Zip2ZipCmd} -i $in -o $out "**/*:$destdir"`,
|
Command: `${config.Zip2ZipCmd} -i $in -o $out -x META-INF/**/* "**/*:$destdir"`,
|
||||||
CommandDeps: []string{
|
CommandDeps: []string{
|
||||||
"${config.Zip2ZipCmd}",
|
"${config.Zip2ZipCmd}",
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user