Fix python proto srczip argument order
-P has to come before -D to have an effect on the files read from the directory. Fixes: 130160833 Test: atest acloud_test Change-Id: I62a998f1ad1e3b45f590babbf39330955d368373
This commit is contained in:
@@ -35,12 +35,12 @@ func genProto(ctx android.ModuleContext, protoFile android.Path, flags android.P
|
|||||||
// into a srcszip.
|
// into a srcszip.
|
||||||
zipCmd := rule.Command().
|
zipCmd := rule.Command().
|
||||||
Tool(ctx.Config().HostToolPath(ctx, "soong_zip")).
|
Tool(ctx.Config().HostToolPath(ctx, "soong_zip")).
|
||||||
FlagWithOutput("-o ", srcsZipFile).
|
FlagWithOutput("-o ", srcsZipFile)
|
||||||
FlagWithArg("-C ", outDir.String()).
|
|
||||||
FlagWithArg("-D ", outDir.String())
|
|
||||||
if pkgPath != "" {
|
if pkgPath != "" {
|
||||||
zipCmd.FlagWithArg("-P ", pkgPath)
|
zipCmd.FlagWithArg("-P ", pkgPath)
|
||||||
}
|
}
|
||||||
|
zipCmd.FlagWithArg("-C ", outDir.String()).
|
||||||
|
FlagWithArg("-D ", outDir.String())
|
||||||
|
|
||||||
rule.Command().Text("rm -rf").Flag(outDir.String())
|
rule.Command().Text("rm -rf").Flag(outDir.String())
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user